Check the actual http response code.

This commit is contained in:
jgen 2014-02-19 16:40:28 -05:00
parent f1a516ef18
commit 1a7cbc9b2a
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,8 @@ class AliasEditorTest extends ShimmieWebTestCase {
$this->assert_title("Alias List");
$this->set_field('oldtag', "test1");
$this->set_field('newtag', "test2");
$this->click("Add");
$this->clickSubmit("Add");
$this->assertResponse(302);
$this->get_page('alias/list');
if (!$this->assert_text("test1")) {

View file

@ -14,6 +14,7 @@ require_once('lib/simpletest/reporter.php');
// Enable all errors.
error_reporting(E_ALL);
define("CLI_LOG_LEVEL", -100); // output everything.
// Get the command line option telling us where the webserver is.
$options = getopt("h::");