Skip to content

Commit

Permalink
Use non-main namespace for three tests
Browse files Browse the repository at this point in the history
WikiLambda seems to be messing with the main namespace.

Bug: T375558
Change-Id: I05fb04d66d0273f31a3575c760d7e702f334c013
  • Loading branch information
lucaswerkmeister committed Sep 25, 2024
1 parent 5c8d9e2 commit e6ca7bf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit e6ca7bf

Please sign in to comment.