Check the actual http response code.
This commit is contained in:
parent
f1a516ef18
commit
1a7cbc9b2a
@ -11,7 +11,8 @@ class AliasEditorTest extends ShimmieWebTestCase {
|
|||||||
$this->assert_title("Alias List");
|
$this->assert_title("Alias List");
|
||||||
$this->set_field('oldtag', "test1");
|
$this->set_field('oldtag', "test1");
|
||||||
$this->set_field('newtag', "test2");
|
$this->set_field('newtag', "test2");
|
||||||
$this->click("Add");
|
$this->clickSubmit("Add");
|
||||||
|
$this->assertResponse(302);
|
||||||
|
|
||||||
$this->get_page('alias/list');
|
$this->get_page('alias/list');
|
||||||
if (!$this->assert_text("test1")) {
|
if (!$this->assert_text("test1")) {
|
||||||
|
@ -14,6 +14,7 @@ require_once('lib/simpletest/reporter.php');
|
|||||||
|
|
||||||
// Enable all errors.
|
// Enable all errors.
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
define("CLI_LOG_LEVEL", -100); // output everything.
|
||||||
|
|
||||||
// Get the command line option telling us where the webserver is.
|
// Get the command line option telling us where the webserver is.
|
||||||
$options = getopt("h::");
|
$options = getopt("h::");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user