You are here

public function ItemTestBase::testSetAndGet in Feeds 8.3

@covers ::set @covers ::get

File

tests/src/Unit/Feeds/Item/ItemTestBase.php, line 31

Class

ItemTestBase
Base class for item tests.

Namespace

Drupal\Tests\feeds\Unit\Feeds\Item

Code

public function testSetAndGet() {
  $this
    ->assertSame($this->item, $this->item
    ->set('field', 'value'));
  $this
    ->assertSame('value', $this->item
    ->get('field'));
}