class TestViewsBulkOperationsBatch in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch
- 8 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch
- 8.2 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch
Override some class methods for proper testing.
Hierarchy
- class \Drupal\views_bulk_operations\ViewsBulkOperationsBatch uses ViewsBulkOperationsActionCompletedTrait
- class \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch
Expanded class hierarchy of TestViewsBulkOperationsBatch
File
- tests/
src/ Unit/ TestViewsBulkOperationsBatch.php, line 10
Namespace
Drupal\Tests\views_bulk_operations\UnitView source
class TestViewsBulkOperationsBatch extends ViewsBulkOperationsBatch {
/**
* Override t method.
*/
public static function translate($string, array $args = [], array $options = []) {
return strtr($string, $args);
}
/**
* Override message method.
*/
public static function message($message = NULL, $type = 'status', $repeat = TRUE) {
static $storage;
if (isset($storage)) {
$output = $storage;
$storage = NULL;
return $output;
}
else {
$storage = (string) $message;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestViewsBulkOperationsBatch:: |
public static | function |
Override message method. Overrides ViewsBulkOperationsActionCompletedTrait:: |
|
TestViewsBulkOperationsBatch:: |
public static | function |
Override t method. Overrides ViewsBulkOperationsActionCompletedTrait:: |
|
ViewsBulkOperationsActionCompletedTrait:: |
public static | function | Batch finished callback. | 1 |
ViewsBulkOperationsBatch:: |
public static | function | Batch builder function. | |
ViewsBulkOperationsBatch:: |
public static | function | Gets the list of entities to process. | |
ViewsBulkOperationsBatch:: |
public static | function | Batch operation callback. | |
ViewsBulkOperationsBatch:: |
public static | function | Save generated list to user tempstore. |