diff --git a/contrib/danbooru_api/test.php b/contrib/danbooru_api/test.php index bbc4c2d6..a5218626 100644 --- a/contrib/danbooru_api/test.php +++ b/contrib/danbooru_api/test.php @@ -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(); } }