Permalink
Browse files

Added tests for clear function in FlashMessenger.

  • Loading branch information...
1 parent 8cf478d commit 59ff8731884af9ed8037f5414f99f45dcab27357 @dimkalinux dimkalinux committed Mar 18, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 .dev/tests/UnitTests/FlashMessenger/FlashMessengerTest.php
@@ -24,4 +24,13 @@ public function testShow() {
$forum_flash->add_error("Error message");
$forum_flash->show(FALSE);
}
+
+ public function testClear() {
+ global $forum_flash;
+
+ $this->expectOutputString("");
+ $forum_flash->add_info("Test message");
+ $forum_flash->clear();
+ $forum_flash->show(FALSE);
+ }
}

0 comments on commit 59ff873

Please sign in to comment.