message.lib.test.php 607 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. require_once(api_get_path(LIBRARY_PATH).'message.lib.php');
  3. class TestMessage extends UnitTestCase {
  4. public function __construct() {
  5. $this->UnitTestCase('Messages library - main/inc/lib/message.lib.test.php');
  6. }
  7. function testInboxDisplay() {
  8. global $charset;
  9. ob_start();
  10. $res=MessageManager::inbox_display();
  11. $this->assertTrue(is_null($res));
  12. ob_end_clean();
  13. //var_dump($res);
  14. }
  15. function testOutboxDisplay() {
  16. global $charset;
  17. ob_start();
  18. $res=MessageManager::outbox_display();
  19. $this->assertTrue(is_null($res));
  20. ob_end_clean();
  21. //var_dump($res);
  22. }
  23. }
  24. ?>