forked from Cavemanon/cavepaintings
PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...
This commit is contained in:
@@ -1,32 +1,33 @@
|
||||
<?php
|
||||
class RSSImagesTest extends ShimmiePHPUnitTestCase {
|
||||
function testImageFeed() {
|
||||
$this->log_in_as_user();
|
||||
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
|
||||
$this->log_out();
|
||||
class RSSImagesTest extends ShimmiePHPUnitTestCase
|
||||
{
|
||||
public function testImageFeed()
|
||||
{
|
||||
$this->log_in_as_user();
|
||||
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
|
||||
$this->log_out();
|
||||
|
||||
$this->get_page('rss/images');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
$this->get_page('rss/images');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
|
||||
$this->get_page('rss/images/1');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
$this->get_page('rss/images/1');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
|
||||
# FIXME: test that the image is actually found
|
||||
$this->get_page('rss/images/computer/1');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
# FIXME: test that the image is actually found
|
||||
$this->get_page('rss/images/computer/1');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
|
||||
# valid tag, invalid page
|
||||
$this->get_page('rss/images/computer/2');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
# valid tag, invalid page
|
||||
$this->get_page('rss/images/computer/2');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
|
||||
# not found
|
||||
$this->get_page('rss/images/waffle/2');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
# not found
|
||||
$this->get_page('rss/images/waffle/2');
|
||||
//$this->assert_mime("application/rss+xml");
|
||||
$this->assert_no_content("Exception");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user