class TestViewsBulkOperationsBatch in Views Bulk Operations (VBO) 8.2
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
- 4.0.x 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
- 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 t($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 ViewsBulkOperationsBatch:: |
|
TestViewsBulkOperationsBatch:: |
public static | function |
Override t method. Overrides ViewsBulkOperationsBatch:: |
|
ViewsBulkOperationsBatch:: |
public static | function | Batch finished callback. | |
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. |