public function testGetDefaultRedirect() { $testUrl = 'http://example.com'; $this->urlMock->expects($this->once())->method('getUrl')->with('*/*/index', ['_secure' => true])->willReturn($testUrl); $this->redirectMock->expects($this->once())->method('error')->with($testUrl)->willReturn($testUrl); $this->redirectResultMock->expects($this->once())->method('setUrl')->with($testUrl)->willReturnSelf(); $this->model->getDefaultResult(); }