Skip to content

Commit 00ae4fa

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "Use assertMatchesRegularExpression in EntityModificationTestHelper"
2 parents 3de7ee4 + 77908a9 commit 00ae4fa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

repo/tests/phpunit/includes/EntityModificationTestHelper.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,7 @@ public function assertRevisionSummary( $regex, $revid, $message = '' ) {
246246

247247
$entry = $this->mockRepository->getLogEntry( $revid );
248248
Assert::assertNotNull( $entry, "revision not found: $revid" );
249-
if ( method_exists( Assert::class, 'assertMatchesRegularExpression' ) ) {
250-
Assert::assertMatchesRegularExpression( $regex, $entry['summary'], $message );
251-
} else {
252-
Assert::assertRegExp( $regex, $entry['summary'], $message );
253-
}
249+
Assert::assertMatchesRegularExpression( $regex, $entry['summary'], $message );
254250
}
255251

256252
}

0 commit comments

Comments
 (0)