Skip to content

Commit 5f541f4

Browse files
committed
External package required for tests
1 parent 2f02b9e commit 5f541f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/ExternalPackageTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ protected function tearDown(): void
2323
User::truncate();
2424
}
2525

26+
/**
27+
* Integration test with spatie/laravel-query-builder.
28+
*/
2629
public function testSpacieQueryBuilder(): void
2730
{
28-
if (! InstalledVersions::isInstalled('spatie/laravel-query-builder')) {
29-
$this->markTestSkipped('spatie/laravel-query-builder is not installed.');
30-
}
31-
3231
User::insert([
33-
['name' => 'Jane Doe', 'birthday' => '1983-09-10', 'role' => 'admin'],
34-
['name' => 'John Doe', 'birthday' => '1980-07-08', 'role' => 'admin'],
3532
['name' => 'Jimmy Doe', 'birthday' => '2012-11-12', 'role' => 'user'],
33+
['name' => 'John Doe', 'birthday' => '1980-07-08', 'role' => 'admin'],
34+
['name' => 'Jane Doe', 'birthday' => '1983-09-10', 'role' => 'admin'],
35+
['name' => 'Jess Doe', 'birthday' => '2014-05-06', 'role' => 'user'],
3636
]);
3737

3838
$request = Request::create('/users', 'GET', ['filter' => ['role' => 'admin'], 'sort' => '-birthday']);

0 commit comments

Comments
 (0)