Port the Fuc 0.12.0 frontend and default-off VIP plugin. Include the previously approved password-reset token revocation. Deploy only to an independent FUC-XB test instance; no production cutover.
21 lines
1.1 KiB
PHP
21 lines
1.1 KiB
PHP
<?php
|
|
namespace Tests\Feature\VipLoyalty;
|
|
// Run the existing native order/gift-card race regressions in memory, without VIP installed.
|
|
class NativeOrderRegressionTest extends \Tests\Unit\Services\OrderServiceConcurrencyTest {
|
|
public function createApplication() {
|
|
$app=require dirname(__DIR__,3).'/bootstrap/app.php';
|
|
$app->beforeBootstrapping(\Illuminate\Foundation\Bootstrap\RegisterProviders::class,function($app){
|
|
$app->instance('env','testing');
|
|
$app['config']->set(['app.env'=>'testing','database.default'=>'sqlite','database.connections.sqlite.database'=>':memory:',
|
|
'cache.default'=>'array','cache.stores.redis'=>['driver'=>'array'],'mail.default'=>'array','queue.default'=>'sync']);
|
|
});
|
|
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();return $app;
|
|
}
|
|
protected function beforeRefreshingDatabase(): void {
|
|
\Illuminate\Support\Facades\DB::purge('sqlite');
|
|
\Illuminate\Support\Facades\Cache::forgetDriver(['redis','array']);
|
|
\Illuminate\Support\Facades\Http::preventStrayRequests();
|
|
\Illuminate\Support\Facades\Mail::fake();
|
|
}
|
|
}
|