Fix the tests for the Alias extension.
This commit is contained in:
parent
807b0c7037
commit
c05b4719d6
@ -28,6 +28,7 @@ class AliasEditorTest extends ShimmieWebTestCase {
|
|||||||
|
|
||||||
$this->get_page('alias/list');
|
$this->get_page('alias/list');
|
||||||
$this->click("Remove");
|
$this->click("Remove");
|
||||||
|
$this->get_page('alias/list');
|
||||||
$this->assert_title("Alias List");
|
$this->assert_title("Alias List");
|
||||||
$this->assert_no_text("test1");
|
$this->assert_no_text("test1");
|
||||||
|
|
||||||
|
@ -195,7 +195,10 @@ class ShimmieWebTestCase extends SCoreWebTestCase {
|
|||||||
protected function delete_image($image_id) {
|
protected function delete_image($image_id) {
|
||||||
if($image_id > 0) {
|
if($image_id > 0) {
|
||||||
$this->get_page('post/view/'.$image_id);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user