You are here

public function TamperableComplexDataAdapterTest::testSetSourceProperty in Tamper 8

@covers ::setSourceProperty

File

tests/src/Unit/Adapter/TamperableComplexDataAdapterTest.php, line 61

Class

TamperableComplexDataAdapterTest
@coversDefaultClass \Drupal\tamper\Adapter\TamperableComplexDataAdapter @group tamper

Namespace

Drupal\Tests\tamper\Unit\Adapter

Code

public function testSetSourceProperty() {
  $this->complexData
    ->expects($this
    ->once())
    ->method('set')
    ->with('foo', 'bar');
  $this->adapter
    ->setSourceProperty('foo', 'bar');
}