diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/SearchApiControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/SearchApiControllerTest.php new file mode 100644 index 000000000..1c76d8975 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Tests/Controller/SearchApiControllerTest.php @@ -0,0 +1,36 @@ +getClientAuthenticated(); + + $client->request( + Request::METHOD_GET, + '/api/1.0/search.json', + [ 'q' => $pattern, 'type' => $types ] + ); + + $this->assertResponseIsSuccessful(); + } + + public function generateSearchData() + { + yield ['per', ['person', 'thirdparty'] ]; + yield ['per', ['thirdparty'] ]; + yield ['per', ['person'] ]; + yield ['fjklmeqjfkdqjklrmefdqjklm', ['person', 'thirdparty'] ]; + } +}