X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FSpecialEditWatchlistTest.php;h=05a63dbc49de4ef3cc340c52e28dab2407b7d444;hb=1c65dd29a3c77173625b9a0f8b59ea1c1c12fc2c;hp=cd84d7990fd0dbac93447406aa14e76529a408ad;hpb=e523771f05050bf415da36b07d9a0fa0e2150d28;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php b/tests/phpunit/includes/specials/SpecialEditWatchlistTest.php index cd84d7990f..05a63dbc49 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( - '/
/', + '//', $html ); }