From 671d5fe2aedf88ed1b48bd890a0c24a959bcef78 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 19 Mar 2012 14:26:39 +0000 Subject: [PATCH] delete the image /after/ using it... --- contrib/danbooru_api/test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } }