public function ViewsBulkOperationsBatchTest::testGetBatch in Views Bulk Operations (VBO) 8
Same name and namespace in other branches
- 8.3 tests/src/Unit/ViewsBulkOperationsBatchTest.php \Drupal\Tests\views_bulk_operations\Unit\ViewsBulkOperationsBatchTest::testGetBatch()
- 8.2 tests/src/Unit/ViewsBulkOperationsBatchTest.php \Drupal\Tests\views_bulk_operations\Unit\ViewsBulkOperationsBatchTest::testGetBatch()
- 4.0.x tests/src/Unit/ViewsBulkOperationsBatchTest.php \Drupal\Tests\views_bulk_operations\Unit\ViewsBulkOperationsBatchTest::testGetBatch()
Tests the getBatch() method.
@covers ::getBatch
File
- tests/
src/ Unit/ ViewsBulkOperationsBatchTest.php, line 68
Class
- ViewsBulkOperationsBatchTest
- @coversDefaultClass \Drupal\views_bulk_operations\ViewsBulkOperationsBatch @group views_bulk_operations
Namespace
Drupal\Tests\views_bulk_operations\UnitCode
public function testGetBatch() {
$data = [
'list' => [
[
0,
'en',
'node',
1,
],
],
'some_data' => [],
'action_label' => '',
];
$batch = TestViewsBulkOperationsBatch::getBatch($data);
$this
->assertArrayHasKey('title', $batch);
$this
->assertArrayHasKey('operations', $batch);
$this
->assertArrayHasKey('finished', $batch);
}