Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / token / tests / src / Kernel / UnitTest.php
index c91f19433203c7493c499f4a86f9c590afad2132..c031e6bfb396bc390b3b4b0bd0b5a58a6935183a 100644 (file)
@@ -33,9 +33,9 @@ class UnitTest extends KernelTestBase {
    * Test invalid tokens.
    */
   public function testGetInvalidTokens() {
-    $tests = array();
-    $tests[] = array(
-      'valid tokens' => array(
+    $tests = [];
+    $tests[] = [
+      'valid tokens' => [
         '[node:title]',
         '[node:created:short]',
         '[node:created:custom:invalid]',
@@ -46,8 +46,8 @@ class UnitTest extends KernelTestBase {
         '[current-date:short]',
         '[current-user:uid]',
         '[current-user:ip-address]',
-      ),
-      'invalid tokens' => array(
+      ],
+      'invalid tokens' => [
         '[node:title:invalid]',
         '[node:created:invalid]',
         '[node:created:short:invalid]',
@@ -62,11 +62,11 @@ class UnitTest extends KernelTestBase {
         '[node:type]',
         '[node:type-name]',
         '[date:short]',
-      ),
-      'types' => array('node'),
-    );
-    $tests[] = array(
-      'valid tokens' => array(
+      ],
+      'types' => ['node'],
+    ];
+    $tests[] = [
+      'valid tokens' => [
         '[node:title]',
         '[node:created:short]',
         '[node:created:custom:invalid]',
@@ -77,8 +77,8 @@ class UnitTest extends KernelTestBase {
         '[user:uid]',
         '[current-date:short]',
         '[current-user:uid]',
-      ),
-      'invalid tokens' => array(
+      ],
+      'invalid tokens' => [
         '[node:title:invalid]',
         '[node:created:invalid]',
         '[node:created:short:invalid]',
@@ -91,9 +91,9 @@ class UnitTest extends KernelTestBase {
         '[node:tnid]',
         '[node:type]',
         '[node:type-name]',
-      ),
-      'types' => array('all'),
-    );
+      ],
+      'types' => ['all'],
+    ];
 
     foreach ($tests as $test) {
       $tokens = array_merge($test['valid tokens'], $test['invalid tokens']);
@@ -116,4 +116,5 @@ class UnitTest extends KernelTestBase {
     $this->assertNull($this->tokenService->getTokenInfo('user_role', 'url'));
     $this->assertNull($this->tokenService->getTypeInfo('user_role'));
   }
+
 }