Fix failing tests

This commit is contained in:
Kasun Chathuranga 2013-08-13 15:11:17 +05:30
parent 1edf192cc6
commit 6d0b3e652f

View File

@ -112,8 +112,8 @@ class PMA_NavigationTest extends PHPUnit_Framework_TestCase
->will(
$this->returnValue(
array(
'item_name' => 'tableName',
'item_type' => 'table'
'item_name' => 'tableName',
'item_type' => 'table'
)
)
);
@ -122,8 +122,8 @@ class PMA_NavigationTest extends PHPUnit_Framework_TestCase
->will(
$this->returnValue(
array(
'item_name' => 'viewName',
'item_type' => 'view'
'item_name' => 'viewName',
'item_type' => 'view'
)
)
);
@ -136,11 +136,11 @@ class PMA_NavigationTest extends PHPUnit_Framework_TestCase
$html = $this->object->getItemUnhideDialog('db');
$this->assertContains(
'<td>tableName&lt;</td>',
'<td>tableName</td>',
$html
);
$this->assertContains(
'<a href="navigation.php?' . PMA_generate_common_url()
'<a href="navigation.php?' . PMA_generate_common_url()
. '&unhideNavItem=true&itemType=table&itemName=tableName&dbName=db"'
. ' class="unhideNavItem ajax">',
$html