function SimpleTestInstallBatchTest::testLoadingEntitiesCreatedInBatch
Tests loading entities created in a batch in test_batch_test_install().
File
-
core/
modules/ simpletest/ src/ Tests/ SimpleTestInstallBatchTest.php, line 32
Class
- SimpleTestInstallBatchTest
- Tests batch operations during tests execution.
Namespace
Drupal\simpletest\TestsCode
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.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.