mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
fix when search service not exists
throw an error when the search service name does not exists. + test
This commit is contained in:
@@ -29,6 +29,14 @@ class SearchProviderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->search = new SearchProvider();
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Chill\MainBundle\Search\UnknowSearchNameException
|
||||
*/
|
||||
public function testInvalidSearchName()
|
||||
{
|
||||
$this->search->getByName("invalid name");
|
||||
}
|
||||
|
||||
public function testDomain()
|
||||
{
|
||||
$term = $this->p("@person is not my name");
|
||||
|
Reference in New Issue
Block a user