Fix the tests for the Alias extension.

This commit is contained in:
jgen 2014-02-17 01:52:30 -05:00
parent 807b0c7037
commit c05b4719d6
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class AliasEditorTest extends ShimmieWebTestCase {
$this->get_page('alias/list');
$this->click("Remove");
$this->get_page('alias/list');
$this->assert_title("Alias List");
$this->assert_no_text("test1");

View File

@ -195,7 +195,10 @@ class ShimmieWebTestCase extends SCoreWebTestCase {
protected function delete_image($image_id) {
if($image_id > 0) {
$this->get_page('post/view/'.$image_id);
$this->click("Delete");
$this->clickSubmit("Delete");
// Make sure that the image is really deleted.
//$this->get_page('post/view/'.$image_id);
//$this->assert_response(404);
}
}
}