Skip to content

Commit

Permalink
Fix mocking of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
malberts committed Nov 3, 2023
1 parent ee670fc commit 761a802
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/phpunit/Util/MockupFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@ function ( $key, $value ) {
->method( 'getSidebar' )
->will( $this->testCase->returnValue( [] ) );

$chameleonTemplate->expects( $this->testCase->any() )
->method( 'getToolbox' )
->will( $this->testCase->returnValue( [] ) );

if ( version_compare( MW_VERSION, '1.41', '<' ) ) {
$chameleonTemplate->expects( $this->testCase->any() )
->method( 'getToolbox' )
->will( $this->testCase->returnValue( [] ) );
}

$chameleonTemplate->expects( $this->testCase->any() )
->method( 'getPersonalTools' )
Expand Down

0 comments on commit 761a802

Please sign in to comment.