From: addshore Date: Thu, 24 Mar 2016 13:11:07 +0000 (+0000) Subject: Introduce basic SpecialWatchlistTest X-Git-Tag: 1.31.0-rc.0~7525^2 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=48fd22b1d02a563ba067f7757ea5d14bd5d64bef;p=lhc%2Fweb%2Fwiklou.git Introduce basic SpecialWatchlistTest Change-Id: I98a2ad112189a09581a0564da3c3357939a5d7de --- diff --git a/tests/phpunit/includes/specials/SpecialWatchlistTest.php b/tests/phpunit/includes/specials/SpecialWatchlistTest.php new file mode 100644 index 0000000000..6e702b637c --- /dev/null +++ b/tests/phpunit/includes/specials/SpecialWatchlistTest.php @@ -0,0 +1,32 @@ +setExpectedException( 'UserNotLoggedIn' ); + $this->executeSpecialPage(); + } + + public function testUserWithNoWatchedItems_displaysNoWatchlistMessage() { + $user = new TestUser( __METHOD__ ); + list( $html, ) = $this->executeSpecialPage( '', null, 'qqx', $user->getUser() ); + $this->assertContains( '(nowatchlist)', $html ); + } + +}