Skip to content

Commit

Permalink
Merge "Use non-main namespace for three tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Oct 18, 2024
2 parents 6fcd8af + e6ca7bf commit dc91a72
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 dc91a72

Please sign in to comment.