Loading tests/src/Kernel/ViewsBulkOperationsKernelTestBase.php +12 −3 Original line number Diff line number Diff line Loading @@ -56,6 +56,16 @@ abstract class ViewsBulkOperationsKernelTestBase extends KernelTestBase { */ protected ?ViewsBulkOperationsViewDataInterface $vboDataService; /** * Messages static for testing purposes. * * @todo Move this to message() method static when PHP 7.4 is no longer * supported. * * @var array */ private static $messages = []; /** * {@inheritdoc} */ Loading Loading @@ -309,11 +319,10 @@ abstract class ViewsBulkOperationsKernelTestBase extends KernelTestBase { * @return string|null */ public static function message($message = NULL, $type = 'status', $repeat = TRUE) { static $messages = []; if ($message === NULL) { return $messages; return self::$messages; } $messages[] = [ self::$messages[] = [ 'message' => (string) $message, 'type' => $type, ]; Loading Loading
tests/src/Kernel/ViewsBulkOperationsKernelTestBase.php +12 −3 Original line number Diff line number Diff line Loading @@ -56,6 +56,16 @@ abstract class ViewsBulkOperationsKernelTestBase extends KernelTestBase { */ protected ?ViewsBulkOperationsViewDataInterface $vboDataService; /** * Messages static for testing purposes. * * @todo Move this to message() method static when PHP 7.4 is no longer * supported. * * @var array */ private static $messages = []; /** * {@inheritdoc} */ Loading Loading @@ -309,11 +319,10 @@ abstract class ViewsBulkOperationsKernelTestBase extends KernelTestBase { * @return string|null */ public static function message($message = NULL, $type = 'status', $repeat = TRUE) { static $messages = []; if ($message === NULL) { return $messages; return self::$messages; } $messages[] = [ self::$messages[] = [ 'message' => (string) $message, 'type' => $type, ]; Loading