123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- use PHPUnit\Framework\TestCase;
- define('APP_ID', 'test');
- define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_CORE_PATH . '/framework/function/http.php');
- require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
- require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
- require_once(BASE_CRONTAB_PATH . '/control/control.php');
- require_once(BASE_CRONTAB_PATH . '/control/minutes.php');
- class TestCrontab extends TestCase
- {
- private $min_controller;
- public static function setUpBeforeClass(): void
- {
- Base::run_util();
- }
- public function __construct(?string $name = null, array $data = [], $dataName = '')
- {
- parent::__construct($name, $data, $dataName);
- $this->min_controller = new minutesControl();
- }
- public function testLimit()
- {
- $this->min_controller->check_refill_order_limit();
- }
- public function testUpdateBalance()
- {
- $this->min_controller->update_channel_balanceOp();
- }
- }
|