function EntityAdapterUnitTest::testGetProperties

Tests get properties.

@legacy-covers ::getProperties

File

core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php, line 378

Class

EntityAdapterUnitTest
Tests Drupal\Core\Entity\Plugin\DataType\EntityAdapter.

Namespace

Drupal\Tests\Core\Entity\TypedData

Code

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.