$extension_discovery->
scan('test_extension'
)->
willReturn([]);
$test_extension_list->
setExtensionDiscovery($extension_discovery->
reveal());
$this->
expectException(UnknownExtensionException::
class);
$test_extension_list->
getName('test_name'
);
} /**
* @covers ::getName
*/
public function testGetName() { $test_extension_list =
$this->
setupTestExtensionList();
$this->
assertEquals('test name',
$test_extension_list->
getName('test_name'
));
} /**
* @covers ::get
*/
public function testGetWithNonExistingExtension() { [$cache,
$info_parser,
$module_handler,
$state] =
$this->
getMocks();
$test_extension_list =
new TestExtension($this->
randomMachineName(), 'test_extension',
$cache->
reveal(),
$info_parser->
reveal(),
$module_handler->
reveal(),
$state->
reveal(), 'testing'
);