diff --git a/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php b/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php index f0aa05865d..c5a5f45fab 100644 --- a/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php +++ b/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php @@ -101,7 +101,7 @@ private function getDefaultEditableOutputPage() { $performer = new UltimateAuthority( $user ); $title = $this->createMock( Title::class ); - $title->method( 'getNamespace' )->willReturn( NS_MAIN ); + $title->method( 'getNamespace' )->willReturn( NS_PROJECT ); $title->expects( $this->any() ) ->method( 'exists' ) ->willReturn( true ); @@ -133,7 +133,7 @@ private function getNullRevisionEditableOutputPage() { $performer = new UltimateAuthority( $user ); $title = $this->createMock( Title::class ); - $title->method( 'getNamespace' )->willReturn( NS_MAIN ); + $title->method( 'getNamespace' )->willReturn( NS_PROJECT ); $title->expects( $this->any() ) ->method( 'exists' ) ->willReturn( true ); @@ -162,7 +162,7 @@ private function getNonExistingTitleEditableOutputPage() { $performer = new UltimateAuthority( $user ); $title = $this->createMock( Title::class ); - $title->method( 'getNamespace' )->willReturn( NS_MAIN ); + $title->method( 'getNamespace' )->willReturn( NS_PROJECT ); $title->expects( $this->any() ) ->method( 'exists' ) ->willReturn( false );