expand test cases
This commit is contained in:
parent
bfa1dc20c0
commit
3d05c2896a
@ -132,7 +132,14 @@ class IndexTest extends ShimmiePHPUnitTestCase {
|
|||||||
/* * * * * * * * * * *
|
/* * * * * * * * * * *
|
||||||
* Wildcards *
|
* Wildcards *
|
||||||
* * * * * * * * * * */
|
* * * * * * * * * * */
|
||||||
public function testWildSearch() {
|
public function testWildSearchNoResults() {
|
||||||
|
$image_ids = $this->upload();
|
||||||
|
|
||||||
|
$this->get_page("post/list/asdfasdf*/1");
|
||||||
|
$this->assert_response(404);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testWildSearchOneResult() {
|
||||||
$image_ids = $this->upload();
|
$image_ids = $this->upload();
|
||||||
|
|
||||||
// Only the first image matches both the wildcard and the tag.
|
// Only the first image matches both the wildcard and the tag.
|
||||||
@ -144,6 +151,15 @@ class IndexTest extends ShimmiePHPUnitTestCase {
|
|||||||
$this->assert_response(302);
|
$this->assert_response(302);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testWildSearchManyResults() {
|
||||||
|
$image_ids = $this->upload();
|
||||||
|
|
||||||
|
// two images match comp* - one matches it once,
|
||||||
|
// one matches it twice
|
||||||
|
$this->get_page("post/list/comp*/1");
|
||||||
|
$this->assert_response(200);
|
||||||
|
}
|
||||||
|
|
||||||
/* * * * * * * * * * *
|
/* * * * * * * * * * *
|
||||||
* Mixed *
|
* Mixed *
|
||||||
* * * * * * * * * * */
|
* * * * * * * * * * */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user