From: Phantom42 Date: Wed, 3 Jan 2018 02:26:48 +0000 (+0200) Subject: Add message to the assert of ApiClearHasMsgTest X-Git-Tag: 1.31.0-rc.0~1012^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=55a12fcfa796371678148effc6ec2dbb20776761;p=lhc%2Fweb%2Fwiklou.git Add message to the assert of ApiClearHasMsgTest This adds 'sanity check' message for one of asserts so it is more clear that it is asserting a precondition. Change-Id: I10d36c1bf69effd7bd83f4a2259144e9f6e114fc --- diff --git a/tests/phpunit/includes/api/ApiClearHasMsgTest.php b/tests/phpunit/includes/api/ApiClearHasMsgTest.php index b7d3205086..5b124074dc 100644 --- a/tests/phpunit/includes/api/ApiClearHasMsgTest.php +++ b/tests/phpunit/includes/api/ApiClearHasMsgTest.php @@ -13,7 +13,7 @@ class ApiClearHasMsgTest extends ApiTestCase { public function testClearFlag() { $user = self::$users['sysop']->getUser(); $user->setNewtalk( true ); - $this->assertTrue( $user->getNewtalk() ); + $this->assertTrue( $user->getNewtalk(), 'sanity check' ); $data = $this->doApiRequest( [ 'action' => 'clearhasmsg' ], [] );