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\KernelCode
public function testFetchingByBasicSubPath() {
$this
->assertEquals($this->node->title->value, $this->dataFetcher
->fetchDataBySubPaths($this->node
->getTypedData(), [
'title',
'0',
'value',
])
->getValue());
}