X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Ftoken%2Ftests%2Fsrc%2FKernel%2FRandomTest.php;fp=web%2Fmodules%2Fcontrib%2Ftoken%2Ftests%2Fsrc%2FKernel%2FRandomTest.php;h=5162846cecafa81ff63b26e7fea3347c49cbc4d3;hb=059867c3f96750652c80f39e44c442a58c2549ee;hp=a4b09303dbae21402893a5b4faef0f013b880aad;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2;p=yaffs-website diff --git a/web/modules/contrib/token/tests/src/Kernel/RandomTest.php b/web/modules/contrib/token/tests/src/Kernel/RandomTest.php index a4b09303d..5162846ce 100644 --- a/web/modules/contrib/token/tests/src/Kernel/RandomTest.php +++ b/web/modules/contrib/token/tests/src/Kernel/RandomTest.php @@ -10,18 +10,19 @@ namespace Drupal\Tests\token\Kernel; class RandomTest extends KernelTestBase { function testRandomTokens() { - $tokens = array( + $tokens = [ 'number' => '[0-9]{1,}', 'hash:md5' => '[0-9a-f]{32}', 'hash:sha1' => '[0-9a-f]{40}', 'hash:sha256' => '[0-9a-f]{64}', 'hash:invalid-algo' => NULL, - ); + ]; - $first_set = $this->assertTokens('random', array(), $tokens, array('regex' => TRUE)); - $second_set = $this->assertTokens('random', array(), $tokens, array('regex' => TRUE)); + $first_set = $this->assertTokens('random', [], $tokens, ['regex' => TRUE]); + $second_set = $this->assertTokens('random', [], $tokens, ['regex' => TRUE]); foreach ($first_set as $token => $value) { $this->assertNotIdentical($first_set[$token], $second_set[$token]); } } + }