public static function TestViewsBulkOperationsBatch::message 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::message()
- 8 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch::message()
- 8.2 tests/src/Unit/TestViewsBulkOperationsBatch.php \Drupal\Tests\views_bulk_operations\Unit\TestViewsBulkOperationsBatch::message()
Override message method.
Overrides ViewsBulkOperationsActionCompletedTrait::message
1 call to TestViewsBulkOperationsBatch::message()
- ViewsBulkOperationsBatchTest::testFinished in tests/
src/ Unit/ ViewsBulkOperationsBatchTest.php - Tests the finished() method.
File
- tests/
src/ Unit/ TestViewsBulkOperationsBatch.php, line 22
Class
- TestViewsBulkOperationsBatch
- Override some class methods for proper testing.
Namespace
Drupal\Tests\views_bulk_operations\UnitCode
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;
}
}