2009-10-21 00:48:01 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('MockPress/mockpress.php');
|
|
|
|
require_once('PHPUnit/Framework.php');
|
|
|
|
require_once(dirname(__FILE__) . '/../../widgets/graphical-navigation.php');
|
|
|
|
|
2009-10-21 01:08:17 +00:00
|
|
|
class GraphicalNavigationTest extends PHPUnit_Framework_TestCase {
|
|
|
|
function testUpdateWidget() {
|
|
|
|
$w = new widget_comicpress_graphical_navigation();
|
2009-10-21 00:48:01 +00:00
|
|
|
|
2009-10-21 01:08:17 +00:00
|
|
|
$this->assertEquals(array(
|
|
|
|
"next" => "<b>test</b>",
|
|
|
|
"next_title" => "test",
|
|
|
|
"archive_path" => "test",
|
|
|
|
), $w->update(array(
|
|
|
|
"next" => "<b>test</b>",
|
|
|
|
"next_title" => "<b>test</b>",
|
|
|
|
"archive_path" => "<b>test</b>",
|
|
|
|
), array()));
|
|
|
|
}
|
2009-10-21 00:48:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|