public function testAddExternalModule() { $moduleDefinition = $this->getMockBuilder('\\Bootstrap\\Definition\\ModuleDefinition')->disableOriginalConstructor()->setMethods(array('get'))->getMock(); $moduleDefinition->expects($this->atLeastOnce())->method('get')->will($this->returnValue(array())); $instance = new BootstrapManager($moduleDefinition); $instance->addExternalModule('ExternalFooModule', 'ExternalRemoteBarPath'); $this->assertArrayHasKey('ExternalFooModule', $this->getGlobalResourceModuleBootstrapExternalStyles()); }