function EntityFieldTest::testComputedProperties

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php \Drupal\KernelTests\Core\Entity\EntityFieldTest::testComputedProperties()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php \Drupal\KernelTests\Core\Entity\EntityFieldTest::testComputedProperties()
  3. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php \Drupal\KernelTests\Core\Entity\EntityFieldTest::testComputedProperties()

Tests getting processed property values via a computed property.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php, line 775

Class

EntityFieldTest
Tests the Entity Field API.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testComputedProperties() : void {
    // All entity variations have to have the same results.
    foreach (entity_test_entity_types() as $entity_type) {
        $this->doTestComputedProperties($entity_type);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.