TestViewsBulkOperationsBatch.php in Views Bulk Operations (VBO) 4.0.x
File
tests/src/Unit/TestViewsBulkOperationsBatch.php
View source
<?php
namespace Drupal\Tests\views_bulk_operations\Unit;
use Drupal\views_bulk_operations\ViewsBulkOperationsBatch;
class TestViewsBulkOperationsBatch extends ViewsBulkOperationsBatch {
public static function translate($string, array $args = [], array $options = []) {
return strtr($string, $args);
}
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;
}
}
}