X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FSpecialEditWatchlistTest.php;h=69fa0dd4bbaf113f395fffbbd1ba5cad6fa92027;hb=70e2881cec98b89edc5afebfae55650782937e67;hp=ab3ac55324adf10c9a59f0f208b7e9111ba5e91b;hpb=5b1dcdc344f5d251120a161637bcb89e01b0f6a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php b/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php index ab3ac55324..69fa0dd4bb 100644 --- a/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php +++ b/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php @@ -19,7 +19,7 @@ class SpecialEditWatchlistTest extends SpecialPageTestBase { } public function testNotLoggedIn_throwsException() { - $this->setExpectedException( 'UserNotLoggedIn' ); + $this->setExpectedException( UserNotLoggedIn::class ); $this->executeSpecialPage(); } @@ -33,7 +33,7 @@ class SpecialEditWatchlistTest extends SpecialPageTestBase { $user = new TestUser( __METHOD__ ); list( $html, ) = $this->executeSpecialPage( 'clear', null, 'qqx', $user->getUser() ); $this->assertRegExp( - '/
/', + '/executeSpecialPage( 'raw', null, 'qqx', $user->getUser() ); $this->assertContains( - '