public function testUrl() { $urlHelperMock = $this->getMock(\Magelight\Helpers\UrlHelper::class, [], [], '', false); $urlHelperMock->expects($this->once())->method('getUrl')->with('match', ['param' => 'value'], 'http')->will($this->returnValue('http://url/match?param=value')); \Magelight\Helpers\UrlHelper::forgeMock($urlHelperMock); $this->assertEquals('http://url/match?param=value', $this->controller->url('match', ['param' => 'value'], 'http')); }