You are here

public function EntityApiTest::testCRUD in Zircon Profile 8

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

Tests basic CRUD functionality of the Entity API.

File

core/modules/system/src/Tests/Entity/EntityApiTest.php, line 37
Contains \Drupal\system\Tests\Entity\EntityApiTest.

Class

EntityApiTest
Tests basic CRUD functionality.

Namespace

Drupal\system\Tests\Entity

Code

public function testCRUD() {

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