Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Jan 14, 2024
1 parent 1854bda commit ac9f722
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,16 @@ class TestCase extends Orchestra
protected function setUp(): void
{
parent::setUp();

Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'Ziming\\LaravelEmailSniperLink\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
}

protected function getPackageProviders($app)
protected function getPackageProviders($app): array
{
return [
LaravelEmailSniperLinkServiceProvider::class,
];
}

public function getEnvironmentSetUp($app)
public function getEnvironmentSetUp($app): void
{
config()->set('database.default', 'testing');

Expand Down

0 comments on commit ac9f722

Please sign in to comment.