Browse Source

Remove useless cases.

Wataru Terada 10 years ago
parent
commit
3ac2832595
1 changed files with 4 additions and 19 deletions
  1. 4 19
      tests/TestCase/Controller/CookieComponentControllerTest.php

+ 4 - 19
tests/TestCase/Controller/CookieComponentControllerTest.php

@@ -84,24 +84,11 @@ class CookieComponentControllerTest extends IntegrationTestCase
     }
 
     /**
-     * @return array
-     */
-    public function encryptionKeyCases()
-    {
-        return [
-            ['foo!foo!foo!foo!foo!foo!foo!foo!'],
-            ['bar!bar!bar!bar!bar!bar!bar!bar!'],
-        ];
-    }
-
-    /**
      * Can specify the encryption key.
-     *
-     * @dataProvider encryptionKeyCases
-     * @param string $key Encryption Key
      */
-    public function testCanSpecifyEncryptionKey($key)
+    public function testCanSpecifyEncryptionKey()
     {
+        $key = 'another salt xxxxxxxxxxxxxxxxxxx';
         $this->cookieEncrypted('NameOfCookie', 'Value of Cookie', 'aes', $key);
 
         $this->get('/cookie_component_test/view/' . urlencode($key));
@@ -111,12 +98,10 @@ class CookieComponentControllerTest extends IntegrationTestCase
 
     /**
      * Can be used Security::salt() as the encryption key.
-     *
-     * @dataProvider encryptionKeyCases
-     * @param string $key Encryption Key
      */
-    public function testCanBeUsedSecuritySaltAsEncryptionKey($key)
+    public function testCanBeUsedSecuritySaltAsEncryptionKey()
     {
+        $key = 'another salt xxxxxxxxxxxxxxxxxxx';
         Security::salt($key);
         $this->cookieEncrypted('NameOfCookie', 'Value of Cookie', 'aes');