From 1a7cbc9b2a52846457e3f99a0ae7f321617726e6 Mon Sep 17 00:00:00 2001 From: jgen Date: Wed, 19 Feb 2014 16:40:28 -0500 Subject: [PATCH] Check the actual http response code. --- ext/alias_editor/test.php | 3 ++- tests/all_tests.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/alias_editor/test.php b/ext/alias_editor/test.php index d54d1c1a..fce6b159 100644 --- a/ext/alias_editor/test.php +++ b/ext/alias_editor/test.php @@ -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")) { diff --git a/tests/all_tests.php b/tests/all_tests.php index e5ec126e..6a5a96a8 100644 --- a/tests/all_tests.php +++ b/tests/all_tests.php @@ -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::");