You are here

public function SimpleTestInstallBatchTest::testLoadingEntitiesCreatedInBatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/SimpleTestInstallBatchTest.php \Drupal\simpletest\Tests\SimpleTestInstallBatchTest::testLoadingEntitiesCreatedInBatch()

Tests loading entities created in a batch in simpletest_test_install().

File

core/modules/simpletest/src/Tests/SimpleTestInstallBatchTest.php, line 32
Contains \Drupal\simpletest\Tests\SimpleTestInstallBatchTest.

Class

SimpleTestInstallBatchTest
Tests batch operations during tests execution.

Namespace

Drupal\simpletest\Tests

Code

public function testLoadingEntitiesCreatedInBatch() {
  $entity1 = entity_load('entity_test', 1);
  $this
    ->assertNotNull($entity1, 'Successfully loaded entity 1.');
  $entity2 = entity_load('entity_test', 2);
  $this
    ->assertNotNull($entity2, 'Successfully loaded entity 2.');
}