Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jajm committed Aug 7, 2017
1 parent 3f49cd2 commit aa5df70
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/SearchTest/Controller/SearchControllerTestCase.php
Expand Up @@ -53,11 +53,13 @@ public function tearDown()
protected function setupTestSearchAdapter()
{
$serviceLocator = $this->getApplication()->getServiceManager();
$config = $serviceLocator->get('Config');
$config['search']['adapters']['test'] = 'Search\Test\Adapter\TestAdapter';
$serviceLocator->setAllowOverride(true);
$serviceLocator->setService('Config', $config);
$serviceLocator->setAllowOverride(false);
$adapterManager = $serviceLocator->get('Search\AdapterManager');
$config = [
'invokables' => [
'test' => 'Search\Test\Adapter\TestAdapter',
],
];
$adapterManager->configure($config);
}

protected function resetApplication()
Expand Down

0 comments on commit aa5df70

Please sign in to comment.