We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4729714 commit 7920911Copy full SHA for 7920911
tests/TestCase.php
@@ -3,6 +3,8 @@
3
namespace Orion\Tests;
4
5
use Illuminate\Contracts\Console\Kernel;
6
+use Illuminate\Database\Eloquent\Builder;
7
+use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Foundation\Testing\RefreshDatabase;
9
use Illuminate\Foundation\Testing\RefreshDatabaseState;
10
@@ -15,6 +17,10 @@ protected function setUp(): void
15
17
parent::setUp();
16
18
19
$this->withFactories(__DIR__.'/Fixtures/database/factories');
20
+
21
+ Model::addGlobalScope(function (Builder $builder) {
22
+ $builder->orderBy('id', 'asc');
23
+ });
24
}
25
26
/**
0 commit comments