Skip to content

Commit 3ac2832

Browse files
committed
Remove useless cases.
1 parent f53f689 commit 3ac2832

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

tests/TestCase/Controller/CookieComponentControllerTest.php

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,12 @@ public function testCanEncryptAndDecryptEvenIfCookieValueIsArray()
8383
);
8484
}
8585

86-
/**
87-
* @return array
88-
*/
89-
public function encryptionKeyCases()
90-
{
91-
return [
92-
['foo!foo!foo!foo!foo!foo!foo!foo!'],
93-
['bar!bar!bar!bar!bar!bar!bar!bar!'],
94-
];
95-
}
96-
9786
/**
9887
* Can specify the encryption key.
99-
*
100-
* @dataProvider encryptionKeyCases
101-
* @param string $key Encryption Key
10288
*/
103-
public function testCanSpecifyEncryptionKey($key)
89+
public function testCanSpecifyEncryptionKey()
10490
{
91+
$key = 'another salt xxxxxxxxxxxxxxxxxxx';
10592
$this->cookieEncrypted('NameOfCookie', 'Value of Cookie', 'aes', $key);
10693

10794
$this->get('/cookie_component_test/view/' . urlencode($key));
@@ -111,12 +98,10 @@ public function testCanSpecifyEncryptionKey($key)
11198

11299
/**
113100
* Can be used Security::salt() as the encryption key.
114-
*
115-
* @dataProvider encryptionKeyCases
116-
* @param string $key Encryption Key
117101
*/
118-
public function testCanBeUsedSecuritySaltAsEncryptionKey($key)
102+
public function testCanBeUsedSecuritySaltAsEncryptionKey()
119103
{
104+
$key = 'another salt xxxxxxxxxxxxxxxxxxx';
120105
Security::salt($key);
121106
$this->cookieEncrypted('NameOfCookie', 'Value of Cookie', 'aes');
122107

0 commit comments

Comments
 (0)