You are here

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

@covers ::fetchDataBySubPaths

File

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

Class

DataFetcherTest
Class DataFetcherTest.

Namespace

Drupal\Tests\typed_data\Kernel

Code

public function testFetchingByBasicSubPath() {
  $this
    ->assertEquals($this->node->title->value, $this->dataFetcher
    ->fetchDataBySubPaths($this->node
    ->getTypedData(), [
    'title',
    '0',
    'value',
  ])
    ->getValue());
}