banner.inc.test.php 437 B

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