public function testGetConverter($name,
$class) { $converter =
$this->
getMockBuilder('Drupal\Core\ParamConverter\ParamConverterInterface'
) ->
setMockClassName($class) ->
getMock();
$this->manager->
addConverter($converter,
$name);
$this->
assertInstanceOf($class,
$this->manager->
getConverter($name));
// Assert that a second call to getConverter() does not use the container.
$this->
assertInstanceOf($class,
$this->manager->
getConverter($name));
} /**
* Tests \Drupal\Core\ParamConverter\ParamConverterManager::getConverter().
*
* @covers ::getConverter
*/
public function testGetConverterException() { $this->
expectException(\InvalidArgumentException::
class);