Test for Status::hasMessage
Change-Id: I080e006fa6a7d8ad68bdf827c4bab7d0ea160230
This commit is contained in:
parent
c83d5d7864
commit
c14f418924
1 changed files with 11 additions and 1 deletions
|
|
@ -177,6 +177,17 @@ class StatusTest extends MediaWikiTestCase {
|
|||
$this->assertEquals( 2, count( $status1->getWarningsArray() ) + count( $status1->getErrorsArray() ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Status::hasMessage
|
||||
*/
|
||||
public function testHasMessage() {
|
||||
$status = new Status();
|
||||
$status->fatal( 'bad' );
|
||||
$this->assertTrue( $status->hasMessage( 'bad' ) );
|
||||
$this->assertFalse( $status->hasMessage( 'good' ) );
|
||||
|
||||
}
|
||||
|
||||
//todo test cleanParams
|
||||
//todo test getWikiText
|
||||
//todo test getMessage
|
||||
|
|
@ -185,7 +196,6 @@ class StatusTest extends MediaWikiTestCase {
|
|||
//todo test getErrorMessageArray
|
||||
//todo test getStatusArray
|
||||
//todo test getErrorsByType
|
||||
//todo test hasMessage
|
||||
//todo test replaceMessage
|
||||
//todo test replaceMessage
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue