1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Issue #4400 Added test for hasMessage(false);

This commit is contained in:
Cameron
2021-02-18 09:31:25 -08:00
parent d45f54262f
commit 2f08384dcb

View File

@@ -137,6 +137,9 @@
{
$this->mes->reset();
$result = $this->mes->hasMessage();
$this->assertFalse($result);
$result= $this->mes->hasMessage(E_MESSAGE_WARNING);
$this->assertFalse($result);
@@ -144,6 +147,12 @@
$result= $this->mes->hasMessage(E_MESSAGE_WARNING);
$this->assertTrue($result);
$result = $this->mes->hasMessage();
$this->assertTrue($result);
$result= $this->mes->hasMessage(E_MESSAGE_INFO);
$this->assertFalse($result);
}
/*
public function testGetInstance()