Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bajramemini committed Jan 7, 2025
1 parent 4cc3d76 commit 419b221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 4 additions & 3 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
use Aura\Base\Resources\Team;
use Aura\Base\Resources\User;
use Aura\Base\Tests\Resources\Post;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTruncation;

uses(Aura\Base\Tests\TestCase::class)->in(__DIR__);

Expand All @@ -16,9 +17,9 @@
uses()->group('resource')->in('Feature/Resource');

uses(RefreshDatabase::class)->in('Feature');
// uses(DatabaseTruncation::class)->in('Feature');

// uses(\Illuminate\Foundation\Testing\RefreshDatabase::class);
uses(DatabaseMigrations::class)->in('DatabaseMigrations');

// uses(\Illuminate\Foundation\Testing\LazilyRefreshDatabase::class)->in('Feature');

Expand Down
8 changes: 1 addition & 7 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ protected function setUp(): void

$this->withoutVite();

// Ensure proper Livewire file upload handling
config()->set('livewire.temporary_file_upload.directory', 'tmp-for-tests');

// Ensure unique database for parallel testing
config()->set('database.connections.testing.database', 'testing_'.env('TEST_TOKEN', gethostname()));

Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'Aura\\Base\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
Expand All @@ -46,7 +40,7 @@ public function getEnvironmentSetUp($app)
// without exception handling
// $this->withoutExceptionHandling();

$migration = include __DIR__.'/../database/migrations/create_aura_tables.php.stub';
$migration = require __DIR__.'/../database/migrations/create_aura_tables.php.stub';
$migration->up();
}

Expand Down

0 comments on commit 419b221

Please sign in to comment.