next/prev with query test
This commit is contained in:
parent
a7dd45b4e7
commit
893ee38e60
@ -4,7 +4,8 @@ class ViewTest extends ShimmieWebTestCase {
|
||||
$this->log_in_as_user();
|
||||
$image_id_1 = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test");
|
||||
$image_id_2 = $this->post_image("ext/simpletest/data/bedroom_workshop.jpg", "test2");
|
||||
$idp1 = $image_id_2 + 1;
|
||||
$image_id_3 = $this->post_image("ext/simpletest/data/favicon.png", "test");
|
||||
$idp1 = $image_id_3 + 1;
|
||||
$this->log_out();
|
||||
|
||||
$this->get_page("post/view/$image_id_1");
|
||||
@ -25,6 +26,11 @@ class ViewTest extends ShimmieWebTestCase {
|
||||
$this->get_page('post/view/-1');
|
||||
$this->assert_title('Image not found');
|
||||
|
||||
# note: skips image #2
|
||||
# note: can't click "Next" / "Prev" since the query is added by javascript
|
||||
$this->get_page("post/prev/$image_id_1?search=test");
|
||||
$this->assert_title("Image $image_id_3: test");
|
||||
|
||||
$this->log_in_as_admin();
|
||||
$this->delete_image($image_id_1);
|
||||
$this->delete_image($image_id_2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user