hasTable('users'))throw new LogicException('Fresh native QA database required'); Artisan::call('migrate',['--force'=>true]);require $s['native'].'/tests/Support/ReceiptFixture.php'; $f=receiptFixture('2.000');$foreign=receiptFixture('2.000'); file_put_contents($s['root'].'/native-fixture.json',json_encode(['tenant'=>$f['tenant']->id,'receiver'=>$f['receiver']->id,'reader'=>$f['otherReceiver']->id,'issuer'=>$f['issuer']->id,'order'=>$f['order']->id,'line'=>$f['line']->id,'warehouse'=>$f['warehouse']->id,'stock'=>$f['stock']->id,'foreign_order'=>$foreign['order']->id,'foreign_warehouse'=>$foreign['warehouse']->id,'foreign_stock'=>$foreign['stock']->id,'issued_on'=>substr($f['order']->getRawOriginal('issued_at'),0,10)],JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR)); file_put_contents($s['root'].'/native-setup.json',json_encode(['passed'=>true,'issued_order_fixture'=>true,'initial_receipts'=>DB::table('goods_receipts')->count(),'initial_movements'=>DB::table('stock_movements')->count(),'new_qa_database'=>true],JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR));