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
This commit is contained in:
Phantom42 2018-01-03 04:26:48 +02:00
parent 2e248f0bb2
commit 55a12fcfa7

View file

@ -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' ], [] );