Skip to content

Commit cacc197

Browse files
committed
wip
1 parent df5cbf8 commit cacc197

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
run: |
4646
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4747
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
48+
composer dump
4849
4950
- name: Execute tests
5051
run: vendor/bin/phpunit

tests/Models/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Kirschbaum\PowerJoins\Tests\Models;
44

5-
use Illuminate\Database\Eloquent\Model;
65
use Kirschbaum\PowerJoins\PowerJoins;
6+
use Illuminate\Database\Eloquent\Model;
77
use Illuminate\Database\Eloquent\Relations\HasMany;
88
use Illuminate\Database\Eloquent\Relations\BelongsTo;
99
use Illuminate\Database\Eloquent\Relations\MorphMany;

tests/database/factories/ImageFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
$factory->state(Image::class, 'owner:post', [
1414
'imageable_type' => Post::class,
15-
'imageable_id' => factory(Post::class),
15+
'imageable_id' => function () {
16+
return factory(Post::class)->create()->id;
17+
},
1618
]);
1719

1820
$factory->state(Image::class, 'cover', [

0 commit comments

Comments
 (0)