Test all factories
This commit is contained in:
parent
0b165bc24c
commit
36c7db40a7
|
@ -19,7 +19,7 @@ class OAuthFactory extends Factory
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'user_id' => User::factory(),
|
'user_id' => User::factory(),
|
||||||
'provider' => $this->faker->unique()->word(),
|
'provider' => $this->faker->unique()->word(),
|
||||||
'identifier' => $this->faker->unique()->word(),
|
'identifier' => $this->faker->unique()->word(),
|
||||||
'access_token' => $this->faker->unique()->word(),
|
'access_token' => $this->faker->unique()->word(),
|
||||||
|
|
|
@ -4,15 +4,22 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Engelsystem\Test\Unit;
|
namespace Engelsystem\Test\Unit;
|
||||||
|
|
||||||
|
use Engelsystem\Models\AngelType;
|
||||||
use Engelsystem\Models\Faq;
|
use Engelsystem\Models\Faq;
|
||||||
|
use Engelsystem\Models\Group;
|
||||||
use Engelsystem\Models\Message;
|
use Engelsystem\Models\Message;
|
||||||
use Engelsystem\Models\News;
|
use Engelsystem\Models\News;
|
||||||
use Engelsystem\Models\NewsComment;
|
use Engelsystem\Models\NewsComment;
|
||||||
|
use Engelsystem\Models\OAuth;
|
||||||
|
use Engelsystem\Models\Privilege;
|
||||||
use Engelsystem\Models\Question;
|
use Engelsystem\Models\Question;
|
||||||
use Engelsystem\Models\Location;
|
use Engelsystem\Models\Location;
|
||||||
|
use Engelsystem\Models\Session;
|
||||||
|
use Engelsystem\Models\Shifts\NeededAngelType;
|
||||||
use Engelsystem\Models\Shifts\Schedule;
|
use Engelsystem\Models\Shifts\Schedule;
|
||||||
use Engelsystem\Models\Shifts\Shift;
|
use Engelsystem\Models\Shifts\Shift;
|
||||||
use Engelsystem\Models\Shifts\ShiftEntry;
|
use Engelsystem\Models\Shifts\ShiftEntry;
|
||||||
|
use Engelsystem\Models\Shifts\ShiftType;
|
||||||
use Engelsystem\Models\User\Contact;
|
use Engelsystem\Models\User\Contact;
|
||||||
use Engelsystem\Models\User\License;
|
use Engelsystem\Models\User\License;
|
||||||
use Engelsystem\Models\User\PasswordReset;
|
use Engelsystem\Models\User\PasswordReset;
|
||||||
|
@ -20,6 +27,7 @@ use Engelsystem\Models\User\PersonalData;
|
||||||
use Engelsystem\Models\User\Settings;
|
use Engelsystem\Models\User\Settings;
|
||||||
use Engelsystem\Models\User\State;
|
use Engelsystem\Models\User\State;
|
||||||
use Engelsystem\Models\User\User;
|
use Engelsystem\Models\User\User;
|
||||||
|
use Engelsystem\Models\UserAngelType;
|
||||||
use Engelsystem\Models\Worklog;
|
use Engelsystem\Models\Worklog;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
@ -33,21 +41,29 @@ class FactoriesTest extends TestCase
|
||||||
public function factoriesProvider(): array
|
public function factoriesProvider(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
[AngelType::class],
|
||||||
[Contact::class],
|
[Contact::class],
|
||||||
[Faq::class],
|
[Faq::class],
|
||||||
|
[Group::class],
|
||||||
[License::class],
|
[License::class],
|
||||||
|
[Location::class],
|
||||||
[Message::class],
|
[Message::class],
|
||||||
|
[NeededAngelType::class],
|
||||||
[News::class],
|
[News::class],
|
||||||
[NewsComment::class],
|
[NewsComment::class],
|
||||||
|
[OAuth::class],
|
||||||
[PasswordReset::class],
|
[PasswordReset::class],
|
||||||
[PersonalData::class],
|
[PersonalData::class],
|
||||||
|
[Privilege::class],
|
||||||
[Question::class],
|
[Question::class],
|
||||||
[Location::class],
|
|
||||||
[Schedule::class],
|
[Schedule::class],
|
||||||
[ShiftEntry::class],
|
[Session::class],
|
||||||
[Settings::class],
|
[Settings::class],
|
||||||
[Shift::class],
|
[Shift::class],
|
||||||
|
[ShiftEntry::class],
|
||||||
|
[ShiftType::class],
|
||||||
[State::class],
|
[State::class],
|
||||||
|
[UserAngelType::class],
|
||||||
[User::class],
|
[User::class],
|
||||||
[Worklog::class],
|
[Worklog::class],
|
||||||
];
|
];
|
||||||
|
@ -56,19 +72,28 @@ class FactoriesTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* Test all model factories
|
* Test all model factories
|
||||||
*
|
*
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\ContactFactory
|
* @covers \Database\Factories\Engelsystem\Models\AngelTypeFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\FaqFactory
|
* @covers \Database\Factories\Engelsystem\Models\FaqFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\LicenseFactory
|
* @covers \Database\Factories\Engelsystem\Models\GroupFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\LocationFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\MessageFactory
|
* @covers \Database\Factories\Engelsystem\Models\MessageFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\NewsFactory
|
|
||||||
* @covers \Database\Factories\Engelsystem\Models\NewsCommentFactory
|
* @covers \Database\Factories\Engelsystem\Models\NewsCommentFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\NewsFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\OAuthFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\PrivilegeFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\QuestionFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\SessionFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\Shifts\NeededAngelTypeFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\Shifts\ScheduleFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\Shifts\ShiftEntryFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\Shifts\ShiftFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\Shifts\ShiftTypeFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\UserAngelTypeFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\User\ContactFactory
|
||||||
|
* @covers \Database\Factories\Engelsystem\Models\User\LicenseFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\PasswordResetFactory
|
* @covers \Database\Factories\Engelsystem\Models\User\PasswordResetFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\PersonalDataFactory
|
* @covers \Database\Factories\Engelsystem\Models\User\PersonalDataFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\QuestionFactory
|
|
||||||
* @covers \Database\Factories\Engelsystem\Models\LocationFactory
|
|
||||||
* @covers \Database\Factories\Engelsystem\Models\Shifts\ScheduleFactory
|
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\SettingsFactory
|
* @covers \Database\Factories\Engelsystem\Models\User\SettingsFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\Shifts\ShiftFactory
|
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\StateFactory
|
* @covers \Database\Factories\Engelsystem\Models\User\StateFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\User\UserFactory
|
* @covers \Database\Factories\Engelsystem\Models\User\UserFactory
|
||||||
* @covers \Database\Factories\Engelsystem\Models\WorklogFactory
|
* @covers \Database\Factories\Engelsystem\Models\WorklogFactory
|
||||||
|
|
Loading…
Reference in New Issue