You are here

public function SimpleTestInstallBatchTest::testLoadingEntitiesCreatedInBatch in SimpleTest 8.3

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

File

src/Tests/SimpleTestInstallBatchTest.php, line 32

Class

SimpleTestInstallBatchTest
Tests batch operations during tests execution.

Namespace

Drupal\simpletest\Tests

Code

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