TestProviderPrice.php 772 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. define('APP_ID', 'test');
  4. define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
  5. require_once(BASE_ROOT_PATH . '/global.php');
  6. require_once(BASE_CORE_PATH . '/lrlz.php');
  7. require_once(BASE_ROOT_PATH . '/fooder.php');
  8. require_once(BASE_HELPER_PATH . '/refill/XYZRefillFactory.php');
  9. class TestProviderPrice extends TestCase
  10. {
  11. public static function setUpBeforeClass(): void
  12. {
  13. Base::run_util();
  14. }
  15. public function testUpdateFromFile()
  16. {
  17. $chprice_helper = new refill\chprice_helper();
  18. $chprice_helper->update_from_file();
  19. }
  20. public function testLoad()
  21. {
  22. $chprice_helper = new refill\chprice_helper();
  23. $chprice_helper->load_from_db();
  24. }
  25. }