You are here

public function DataFetcherTest::testFetchingByBasicPropertyPath in Typed Data API enhancements 8

@covers ::fetchDataByPropertyPath

File

tests/src/Kernel/DataFetcherTest.php, line 105

Class

DataFetcherTest
Class DataFetcherTest.

Namespace

Drupal\Tests\typed_data\Kernel

Code

public function testFetchingByBasicPropertyPath() {
  $this
    ->assertEquals($this->node->title->value, $this->dataFetcher
    ->fetchDataByPropertyPath($this->node
    ->getTypedData(), 'title.0.value')
    ->getValue());
}