|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
-define('APP_ID', 'test');
|
|
|
+define('APP_ID', 'balance');
|
|
|
define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
|
|
|
|
|
|
require_once(BASE_ROOT_PATH . '/global.php');
|
|
@@ -26,7 +26,7 @@ class TestRefillBalance extends TestCase
|
|
|
$refill_balance->add_balance('system', 0, 0, strtotime('2021-12-01'),'order_time');
|
|
|
}
|
|
|
|
|
|
- //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefillBalance::testInitBalance)( .*)?$/" --test-suffix TestRefillBalance.php /var/www/html/test
|
|
|
+ //docker-compose -d run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefillBalance::testInitBalance)( .*)?$/" --test-suffix TestRefillBalance.php /var/www/html/test
|
|
|
public function testInitBalance()
|
|
|
{
|
|
|
$refill_balance = new statistics\refill_balance();
|