Browse Source

Fixate session_id() in security component tests.

Having a fixed session_id allows all the hash comparisons to not need
updating.
Mark Story 8 years ago
parent
commit
8467d1edbb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Controller/Component/SecurityComponentTest.php

+ 1 - 0
tests/TestCase/Controller/Component/SecurityComponentTest.php

@@ -156,6 +156,7 @@ class SecurityComponentTest extends TestCase
     public function setUp()
     {
         parent::setUp();
+        session_id('cli');
 
         $this->server = $_SERVER;
         $session = new Session();