banner.inc.test.php 466 B

123456789101112131415161718192021
  1. <?php
  2. class TestBanner extends UnitTestCase
  3. {
  4. public function TestBanner()
  5. {
  6. $this->UnitTestCase('Banners library - main/inc/banner.inc.test.php');
  7. }
  8. public function testGetTabs()
  9. {
  10. ob_start();
  11. require_once(api_get_path(SYS_CODE_PATH).'inc/banner.inc.php');
  12. ob_end_clean();
  13. $res = get_tabs();
  14. $this->assertTrue(is_array($res));
  15. $this->assertTrue($res);
  16. //var_dump($res);
  17. }
  18. }