delete the image /after/ using it...

This commit is contained in:
Shish 2012-03-19 14:26:39 +00:00
parent f515d2b186
commit 671d5fe2ae

View File

@ -5,10 +5,6 @@ class DanbooruApiTest extends ShimmieWebTestCase {
$image_id = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "data");
$this->get_page("post/list/md5:17fc89f372ed3636e28bd25cc7f3bac1/1");
$this->assert_title(new PatternExpectation("/^Image \d+: data/"));
$this->click("Delete");
$this->get_page("api/danbooru/find_posts");
$this->get_page("api/danbooru/find_posts?id=$image_id");
$this->get_page("api/danbooru/find_posts?md5=17fc89f372ed3636e28bd25cc7f3bac1");
@ -20,6 +16,10 @@ class DanbooruApiTest extends ShimmieWebTestCase {
$this->get_page("api/danbooru/post/show/$image_id");
$this->assert_response(302);
$this->get_page("post/list/md5:17fc89f372ed3636e28bd25cc7f3bac1/1");
$this->assert_title(new PatternExpectation("/^Image \d+: data/"));
$this->click("Delete");
$this->log_out();
}
}