comicpress-2.8/test/widgets/GraphicalNavigationTest.php

23 lines
575 B
PHP
Raw Normal View History

<?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 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()));
}
}
?>