Skip to content

Commit 073379d

Browse files
committed
Add of tests
1 parent f9789b0 commit 073379d

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

tests/Feature/AbstractFilterableRepositoryTest.php renamed to tests/Feature/PeopleRepositoryTest.php

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,31 @@
55
use Tests\TestCase;
66
use Tests\Example\Filters\OldPeopleFilter;
77
use Tests\Example\Entities\PeopleEntityList;
8+
use Illuminate\Foundation\Testing\DatabaseTransactions;
89

910
class AbstractFilterableRepositoryTest extends TestCase
1011
{
11-
use \Illuminate\Foundation\Testing\DatabaseTransactions;
12-
13-
protected function setUp(): void
14-
{
15-
parent::setUp();
16-
}
12+
use DatabaseTransactions;
1713

1814
/** */
1915
public function testCan_get_old_people(): void
2016
{
2117
$peopleRepository = $this->instantiatePeopleRepository();
2218

2319
$this->createPeople([
24-
[
25-
'firstname' => 'Snoop',
26-
'lastname' => 'Dogg',
27-
'gender' => 'male',
28-
'age' => 49,
29-
],
30-
[
31-
'firstname' => 'Danielle',
32-
'lastname' => 'Studio',
33-
'gender' => 'female',
34-
'age' => 67,
35-
],
36-
]);
20+
[
21+
'firstname' => 'Snoop',
22+
'lastname' => 'Dogg',
23+
'gender' => 'male',
24+
'age' => 49,
25+
],
26+
[
27+
'firstname' => 'Danielle',
28+
'lastname' => 'Studio',
29+
'gender' => 'female',
30+
'age' => 67,
31+
],
32+
]);
3733

3834
$people = $peopleRepository
3935
->addFilter(OldPeopleFilter::class)

tests/Unit/AbstractFilterTest.php

Whitespace-only changes.

tests/Unit/AbstractFilterableRepositoryTest.php

Whitespace-only changes.

0 commit comments

Comments
 (0)