forked from Cavemanon/cavepaintings
consistent naming for test functions
This commit is contained in:
@@ -6,27 +6,27 @@ class RSSImagesTest extends ShimmieWebTestCase {
|
||||
$this->log_out();
|
||||
|
||||
$this->get_page('rss/images');
|
||||
$this->assertMime("application/rss+xml");
|
||||
$this->assertNoText("Exception");
|
||||
$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_text("Exception");
|
||||
|
||||
$this->get_page('rss/images/1');
|
||||
$this->assertMime("application/rss+xml");
|
||||
$this->assertNoText("Exception");
|
||||
$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_text("Exception");
|
||||
|
||||
# FIXME: test that the image is actually found
|
||||
$this->get_page('rss/images/computer/1');
|
||||
$this->assertMime("application/rss+xml");
|
||||
$this->assertNoText("Exception");
|
||||
$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_text("Exception");
|
||||
|
||||
# valid tag, invalid page
|
||||
$this->get_page('rss/images/computer/2');
|
||||
$this->assertMime("application/rss+xml");
|
||||
$this->assertNoText("Exception");
|
||||
$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_text("Exception");
|
||||
|
||||
# not found
|
||||
$this->get_page('rss/images/waffle/2');
|
||||
$this->assertMime("application/rss+xml");
|
||||
$this->assertNoText("Exception");
|
||||
$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_text("Exception");
|
||||
|
||||
$this->log_in_as_admin();
|
||||
$this->delete_image($image_id);
|
||||
|
Reference in New Issue
Block a user