You are here

public function TamperableFeedItemAdapterTest::testGetSourceProperty in Feeds Tamper 8.2

@covers ::getSourceProperty

File

tests/src/Unit/Adapter/TamperableFeedItemAdapterTest.php, line 50

Class

TamperableFeedItemAdapterTest
@coversDefaultClass \Drupal\feeds_tamper\Adapter\TamperableFeedItemAdapter @group feeds_tamper

Namespace

Drupal\Tests\feeds_tamper\Unit\Adapter

Code

public function testGetSourceProperty() {
  $this->feedItem
    ->expects($this
    ->once())
    ->method('get')
    ->with('foo')
    ->willReturn('bar');
  $this
    ->assertEquals('bar', $this->adapter
    ->getSourceProperty('foo'));
}