function EntityAdapterUnitTest::testGetProperties
Tests get properties.
@legacy-covers ::getProperties
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ TypedData/ EntityAdapterUnitTest.php, line 378
Class
Namespace
Drupal\Tests\Core\Entity\TypedDataCode
public function testGetProperties() : void {
$fields = $this->entityAdapter
->getProperties();
$this->assertInstanceOf('Drupal\\Core\\Field\\FieldItemListInterface', $fields['id']);
$this->assertInstanceOf('Drupal\\Core\\Field\\FieldItemListInterface', $fields['revision_id']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.