You are here

public function EntityFieldTest::testIterator 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::testIterator()

Tests iterating over properties.

File

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

Class

EntityFieldTest
Tests the Entity Field API.

Namespace

Drupal\system\Tests\Entity

Code

public function testIterator() {

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