Use regexp here as well
This commit is contained in:
parent
dc953ec477
commit
2adb4185d0
@ -146,8 +146,8 @@ class PMA_operations_test extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testPMA_getMaintainActionlink(){
|
||||
|
||||
$this->assertEquals(
|
||||
'<li><a class="maintain_action" href="tbl_operations.php?name=foo&value=bar&token=token">post</a></li>',
|
||||
$this->assertRegExp(
|
||||
'/.*href="tbl_operations.php.*post.*/',
|
||||
PMA_getMaintainActionlink(
|
||||
"post",
|
||||
array("name" => 'foo', "value" => 'bar'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user