TestCategory.php 786 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/7/2
  6. * Time: 下午9:06
  7. */
  8. define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
  9. require_once(BASE_ROOT_PATH . '/fooder.php');
  10. require_once(BASE_ROOT_PATH . '/helper/category_helper.php');
  11. require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
  12. class TestCategory extends PHPUnit_Framework_TestCase
  13. {
  14. public static function setUpBeforeClass()
  15. {
  16. Base::run_util();
  17. }
  18. public function testCategories()
  19. {
  20. $cats = category_helper::instance()->categories();
  21. }
  22. public function testSearch()
  23. {
  24. $x = RESOURCE_SITE_URL;
  25. $cats = category_helper::instance()->categories();
  26. }
  27. public static function tearDownAfterClass()
  28. {
  29. }
  30. }