public function testCannotCreateUnregisteredAdapter() { $this->setExpectedException('InvalidArgumentException', 'No Adapter with name "test2" is registered.'); $this->adapterFactory->createRepositoryManager('test2', [], $this->config); }