You are here

public function EntityFieldTest::testIntrospection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityFieldTest.php \Drupal\system\Tests\Entity\EntityFieldTest::testIntrospection()

Tests introspection and getting metadata upfront.

File

core/modules/system/src/Tests/Entity/EntityFieldTest.php, line 386
Contains \Drupal\system\Tests\Entity\EntityFieldTest.

Class

EntityFieldTest
Tests the Entity Field API.

Namespace

Drupal\system\Tests\Entity

Code

public function testIntrospection() {

  // All entity variations have to have the same results.
  foreach (entity_test_entity_types() as $entity_type) {
    $this
      ->doTestIntrospection($entity_type);
  }
}