Skip to content

Commit

Permalink
REST: Fix param order in EditMetadataHelper assert statements
Browse files Browse the repository at this point in the history
The expected value should come before the actual value

Change-Id: Ic0426a59a89ad8477cae5aff13ae0f0a69e25fa7
  • Loading branch information
outdooracorn committed Sep 21, 2023
1 parent 0703a04 commit 4907072
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ private function expectEquivalentMetadata(
): Callback {
return TestCase::callback(
function( EditMetadata $editMetadata ) use ( $editTags, $isBot, $comment, $editAction ): bool {
TestCase::assertSame( $editMetadata->getTags(), $editTags );
TestCase::assertSame( $editMetadata->isBot(), $isBot );
TestCase::assertSame( $editMetadata->getSummary()->getUserComment(), $comment );
TestCase::assertSame( $editMetadata->getSummary()->getEditAction(), $editAction );
TestCase::assertSame( $editTags, $editMetadata->getTags() );
TestCase::assertSame( $isBot, $editMetadata->isBot() );
TestCase::assertSame( $comment, $editMetadata->getSummary()->getUserComment() );
TestCase::assertSame( $editAction, $editMetadata->getSummary()->getEditAction() );
return true;
}
);
}

}

0 comments on commit 4907072

Please sign in to comment.