diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-12 11:46:49 +0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-12 11:46:53 +0300 |
commit | d0b3ca5d48832cef59df0899438679704461e33d (patch) | |
tree | 7c10368bdc84681d1b6072f08dad1bbbcf8f4eab /test/classes/SanitizeTest.php | |
parent | 533f3ff6f471313dd125da7e4cc1025059b0e587 (diff) |
Refactoring tests
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
Diffstat (limited to 'test/classes/SanitizeTest.php')
-rw-r--r-- | test/classes/SanitizeTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/classes/SanitizeTest.php b/test/classes/SanitizeTest.php index e719b1d6d2..98aeb90c2f 100644 --- a/test/classes/SanitizeTest.php +++ b/test/classes/SanitizeTest.php @@ -280,9 +280,9 @@ class SanitizeTest extends TestCase $_REQUEST['second'] = 1; $allow_list = array('allow', 'second'); Sanitize::removeRequestVars($allow_list); - $this->assertFalse(isset($_REQUEST['foo'])); - $this->assertFalse(isset($_REQUEST['second'])); - $this->assertTrue(isset($_REQUEST['allow'])); + $this->assertArrayNotHasKey('foo', $_REQUEST); + $this->assertArrayNotHasKey('second', $_REQUEST); + $this->assertArrayHasKey('allow', $_REQUEST); } } |