-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
- Loading branch information
Showing
6 changed files
with
22 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
providers: | ||
- Laravel\Scout\ScoutServiceProvider | ||
|
||
migrations: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,25 @@ | |
|
||
namespace Laravel\Scout\Tests\Feature; | ||
|
||
use Illuminate\Foundation\Testing\WithFaker; | ||
use Laravel\Scout\ScoutServiceProvider; | ||
use Illuminate\Foundation\Testing\LazilyRefreshDatabase; | ||
use Laravel\Scout\Tests\Fixtures\SearchableUserModel; | ||
use Laravel\Scout\Tests\Fixtures\SearchableUserModelWithCustomSearchableData; | ||
use Orchestra\Testbench\Concerns\WithLaravelMigrations; | ||
use Orchestra\Testbench\Concerns\WithWorkbench; | ||
use Orchestra\Testbench\Factories\UserFactory; | ||
use Orchestra\Testbench\TestCase; | ||
|
||
class CollectionEngineTest extends TestCase | ||
{ | ||
use WithFaker; | ||
|
||
protected function getPackageProviders($app) | ||
{ | ||
return [ScoutServiceProvider::class]; | ||
} | ||
use LazilyRefreshDatabase, WithLaravelMigrations, WithWorkbench; | ||
|
||
protected function defineEnvironment($app) | ||
{ | ||
$app->make('config')->set('scout.driver', 'collection'); | ||
} | ||
|
||
protected function defineDatabaseMigrations() | ||
protected function afterRefreshingDatabase() | ||
{ | ||
$this->setUpFaker(); | ||
$this->loadLaravelMigrations(); | ||
|
||
UserFactory::new()->create([ | ||
'name' => 'Taylor Otwell', | ||
'email' => '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,25 @@ | |
|
||
namespace Laravel\Scout\Tests\Feature; | ||
|
||
use Illuminate\Foundation\Testing\LazilyRefreshDatabase; | ||
use Illuminate\Foundation\Testing\WithFaker; | ||
use Laravel\Scout\ScoutServiceProvider; | ||
use Laravel\Scout\Tests\Fixtures\SearchableUserDatabaseModel; | ||
use Orchestra\Testbench\Concerns\WithLaravelMigrations; | ||
use Orchestra\Testbench\Concerns\WithWorkbench; | ||
use Orchestra\Testbench\Factories\UserFactory; | ||
use Orchestra\Testbench\TestCase; | ||
|
||
class DatabaseEngineTest extends TestCase | ||
{ | ||
use WithFaker; | ||
|
||
protected function getPackageProviders($app) | ||
{ | ||
return [ScoutServiceProvider::class]; | ||
} | ||
use LazilyRefreshDatabase, WithFaker, WithLaravelMigrations, WithWorkbench; | ||
|
||
protected function defineEnvironment($app) | ||
{ | ||
$app->make('config')->set('scout.driver', 'database'); | ||
} | ||
|
||
protected function defineDatabaseMigrations() | ||
protected function afterRefreshingDatabase() | ||
{ | ||
$this->setUpFaker(); | ||
$this->loadLaravelMigrations(); | ||
|
||
UserFactory::new()->create([ | ||
'name' => 'Taylor Otwell', | ||
'email' => '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters