E2E\TestCase::resetData PHP Method

resetData() protected method

Reset the test data for E2E tests.
protected resetData ( )
    protected function resetData()
    {
        // Make sure we have a fresh database.
        @unlink(__DIR__ . '/../../database/e2e.sqlite');
        touch(__DIR__ . '/../../database/e2e.sqlite');
        Artisan::call('migrate');
        Artisan::call('db:seed');
        Artisan::call('db:seed', ['--class' => 'E2EDataSeeder']);
        if (!file_exists($this->coverPath)) {
            @mkdir($this->coverPath, 0777, true);
        }
    }