Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Fixed mocking ActionRequest method
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Mar 31, 2016
1 parent 90e4125 commit c9b58c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/custom/tests/MW/View/Helper/Url/FlowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ protected function setUp()
->method( 'getBaseUri' )
->will( $this->returnValue( 'http://localhost/' ) );

$mockMainRequest = $this->getMock( 'TYPO3\Flow\Mvc\ActionRequest', array( 'getControllerObjectName' ), array( $mockHttpRequest ) );
$mockMainRequest = $this->getMock( 'TYPO3\Flow\Mvc\ActionRequest',
array( 'getControllerObjectName', 'getArgumentNamespace' ), array( $mockHttpRequest ) );
$mockMainRequest->expects( $this->any() )
->method( 'getArgumentNamespace' )
->will( $this->returnValue( 'ai' ) );
Expand Down

0 comments on commit c9b58c1

Please sign in to comment.