/** * @group Slow * @slowExecutionTime 0.05506 ms */ public function testGetModuleName() { $mockMsg = $this->getGlobalFunctionMock('wfMessage'); $model = new EditHubModel(); $mockMsg->expects($this->once())->method('wfMessage')->with('wikia-hubs-module-slider')->will($this->returnValue('testNameFor slider')); $this->assertEquals('testNameFor slider', $model->getModuleName(WikiaHubsModuleSliderService::MODULE_ID)); }