Skip to content

Commit 6967260

Browse files
committed
Fix missed phpunit code issues
1 parent fc60952 commit 6967260

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

skeleton/tests/controller/main_test.php.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ class main_test extends \phpbb_test_case
4545
->getMock();
4646
4747
// Set {{ LANGUAGE.object }}->lang() to return any arguments sent to it
48-
${{ LANGUAGE.object }}->expects(self::any())
49-
->method('lang')
50-
->will(self::returnArgument(0));
48+
${{ LANGUAGE.object }}->method('lang')
49+
->will($this->returnArgument(0));
5150
5251
/** @var \phpbb\controller\helper|\PHPUnit\Framework\MockObject\MockObject $controller_helper Mock the controller helper class */
5352
$controller_helper = $this->getMockBuilder('\phpbb\controller\helper')

0 commit comments

Comments
 (0)