Skip to content

Commit

Permalink
Remove unused ModelFactory and cleanup Pest.php
Browse files Browse the repository at this point in the history
Deleted the empty ModelFactory.php to reduce clutter in the codebase. Removed unnecessary use statements from Pest.php for a cleaner setup. Added a configuration change in TestCase.php to ensure the testing database has no prefix.
  • Loading branch information
CrazyBoy49z committed Sep 8, 2024
1 parent 55ac483 commit abb2405
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

3 changes: 0 additions & 3 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;
use Step2Dev\LazySetting\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected function getPackageProviders($app)
public function getEnvironmentSetUp($app): void
{
config()->set('database.default', 'testing');
config()->set('database.connections.testing.prefix', '');

$migration = include __DIR__.'/../database/migrations/create_lazy_setting_table.php.stub';
$migration->up();
Expand Down

0 comments on commit abb2405

Please sign in to comment.