Skip to content

Commit

Permalink
Remove useless cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
waterada committed Dec 21, 2015
1 parent f53f689 commit 3ac2832
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions tests/TestCase/Controller/CookieComponentControllerTest.php
Expand Up @@ -83,25 +83,12 @@ public function testCanEncryptAndDecryptEvenIfCookieValueIsArray()
);
}

/**
* @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));
Expand All @@ -111,12 +98,10 @@ public function testCanSpecifyEncryptionKey($key)

/**
* 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');

Expand Down

0 comments on commit 3ac2832

Please sign in to comment.