Skip to content

Commit f9cb6da

Browse files
wip Draft testing
1 parent d9a67bf commit f9cb6da

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/draft/database/factories/DraftFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function setTranslatedAttributes(Draft $draft): void
5959
'description' => $this->getLocalizedDescription($locale),
6060
'content' => $this->getLocalizedContent($locale),
6161
'author_id' => $this->faker->numberBetween(1, 10),
62-
'author_type' => 'Moox\\User\\Models\\User',
62+
'author_type' => config('draft.user_models')[0],
6363
'translation_status' => $this->faker->randomElement(['draft', 'waiting', 'private', 'scheduled', 'published', 'not_translated', 'deleted']),
6464

6565
]);

packages/draft/tests/ArchTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
->toUseStrictTypes()
88
->not->toUse(['die', 'dd', 'dump']);
99

10-
arch()
11-
->expect('Moox\Draft\Models')
12-
->toBeClasses()
13-
->toExtend(Model::class)
14-
->toOnlyBeUsedIn('Moox\Draft');
1510

1611
arch()->preset()->php();
1712
arch()->preset()->security()->ignoring('md5');

0 commit comments

Comments
 (0)