1
0
Fork 0
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:
Robin Appelman 2017-09-12 17:47:21 +02:00
commit 7a68627054
2 changed files with 8 additions and 5 deletions

View file

@ -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());