diff options
author | William Desportes <williamdes@wdes.fr> | 2020-05-26 14:13:15 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2020-05-26 14:13:15 +0300 |
commit | a300a25319c24e45ebb37a6fb68e8afb7c924316 (patch) | |
tree | 4f83310673954bc0908576386fd54cb1b7607c2f /test/classes/Server | |
parent | c46ab688334da22972187ddcf7e2d23f156ba266 (diff) |
Replace assertEquals({false,true} by assert{false,true}
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/classes/Server')
-rw-r--r-- | test/classes/Server/PrivilegesTest.php | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/test/classes/Server/PrivilegesTest.php b/test/classes/Server/PrivilegesTest.php index 1a3a7a7f74..1d411ba7df 100644 --- a/test/classes/Server/PrivilegesTest.php +++ b/test/classes/Server/PrivilegesTest.php @@ -163,8 +163,7 @@ class PrivilegesTest extends AbstractTestCase '`PMA_dbname`.`PMA_tablename`', $db_and_table ); - $this->assertEquals( - true, + $this->assertTrue( $dbname_is_wildcard ); @@ -190,8 +189,7 @@ class PrivilegesTest extends AbstractTestCase '`PMA_pred_dbname`.`PMA_pred__tablename`', $db_and_table ); - $this->assertEquals( - true, + $this->assertTrue( $dbname_is_wildcard ); } @@ -622,8 +620,7 @@ class PrivilegesTest extends AbstractTestCase . "GRANT ALL PRIVILEGES ON `pma_dbname`.* TO ''@'localhost';", $sql_query ); - $this->assertEquals( - false, + $this->assertFalse( $_add_user_error ); } @@ -673,8 +670,7 @@ class PrivilegesTest extends AbstractTestCase . "GRANT ALL PRIVILEGES ON `pma_dbname`.* TO ''@'localhost';", $sql_query ); - $this->assertEquals( - false, + $this->assertFalse( $_add_user_error ); } @@ -1495,20 +1491,17 @@ class PrivilegesTest extends AbstractTestCase ); //user_exists - $this->assertEquals( - false, + $this->assertFalse( $extra_data['user_exists'] ); //db_wildcard_privs - $this->assertEquals( - true, + $this->assertTrue( $extra_data['db_wildcard_privs'] ); //user_exists - $this->assertEquals( - false, + $this->assertFalse( $extra_data['db_specific_privs'] ); |