From 55a12fcfa796371678148effc6ec2dbb20776761 Mon Sep 17 00:00:00 2001 From: Phantom42 Date: Wed, 3 Jan 2018 04:26:48 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/api/ApiClearHasMsgTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ], [] ); -- 2.20.1