You are here

public function EntityFieldDefaultValueTest::testDefaultValues in Zircon Profile 8

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

Tests default values on entities and fields.

File

core/modules/system/src/Tests/Entity/EntityFieldDefaultValueTest.php, line 36
Contains \Drupal\system\Tests\Entity\EntityFieldDefaultValueTest.

Class

EntityFieldDefaultValueTest
Tests default values for entity fields.

Namespace

Drupal\system\Tests\Entity

Code

public function testDefaultValues() {

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