public function hasExtension($structureType, $name)
{
$extensions = $this->getExtensions($structureType);
return isset($extensions[$name]);
}
/** * It can say if it has an extension. */ public function testHasExtension() { $this->extensionManager->hasExtension('content', 'foo')->willReturn(true); $result = $this->structureManager->hasExtension('content', 'foo'); $this->assertTrue($result); }