public function ModuleInstallBatchTest::testLoadingEntitiesCreatedInBatch in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Core/Test/ModuleInstallBatchTest.php \Drupal\FunctionalTests\Core\Test\ModuleInstallBatchTest::testLoadingEntitiesCreatedInBatch()
- 10 core/tests/Drupal/FunctionalTests/Core/Test/ModuleInstallBatchTest.php \Drupal\FunctionalTests\Core\Test\ModuleInstallBatchTest::testLoadingEntitiesCreatedInBatch()
Tests loading entities created in a batch in test_batch_test_install().
File
- core/
tests/ Drupal/ FunctionalTests/ Core/ Test/ ModuleInstallBatchTest.php, line 36
Class
- ModuleInstallBatchTest
- Tests batch operations during tests execution.
Namespace
Drupal\FunctionalTests\Core\TestCode
public function testLoadingEntitiesCreatedInBatch() {
foreach ([
1,
2,
] as $id) {
$this
->assertNotNull(EntityTest::load($id), 'Successfully loaded entity ' . $id);
}
}