mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
allow searching by cleaned map name
This commit is contained in:
parent
060346deba
commit
7a68627054
2 changed files with 8 additions and 5 deletions
|
|
@ -71,11 +71,11 @@ class DemoListProviderTest extends TestCase {
|
|||
}
|
||||
|
||||
public function testFilterMap() {
|
||||
$id1 = $this->demoProvider->storeDemo($this->getDemo(1, 'map1'), 'foo', 'bar');
|
||||
$id2 = $this->demoProvider->storeDemo($this->getDemo(1, 'map2'), 'foo', 'bar');
|
||||
$id3 = $this->demoProvider->storeDemo($this->getDemo(1, 'map1'), 'foo', 'bar');
|
||||
$id1 = $this->demoProvider->storeDemo($this->getDemo(1, 'map_foo'), 'foo', 'bar');
|
||||
$id2 = $this->demoProvider->storeDemo($this->getDemo(1, 'map_bar'), 'foo', 'bar');
|
||||
$id3 = $this->demoProvider->storeDemo($this->getDemo(1, 'map_foo'), 'foo', 'bar');
|
||||
|
||||
$list = $this->demoListProvider->listDemos(1, ['map' => 'map1']);
|
||||
$list = $this->demoListProvider->listDemos(1, ['map' => 'map_foo']);
|
||||
$this->assertCount(2, $list);
|
||||
|
||||
$this->assertEquals($id3, $list[0]->getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue