Skip to content

Commit

Permalink
Merge 376fc8f into 4e083f3
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Dec 28, 2021
2 parents 4e083f3 + 376fc8f commit 5441379
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion src/Test/FactoryTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ protected function setUp(): void
{
parent::setUp();

$this->user = fake($this->faker);
$this->factory = new $this->class();
$this->createEntity();
}

/**
* Creates the test entity.
*/
protected function createEntity(): void
{
$this->user = fake($this->faker);
}

public function testId()
Expand Down
4 changes: 2 additions & 2 deletions tests/entities/MythEntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ final class MythEntityTest extends EntityTestCase
/**
* Creates the scenario for entities that implement HasGroup
* to verify the following checks:
* - $this->entity->hasGroup('Dire') === false
* - $this->entity->hasGroup('Radiant') === true
* - $this->entity->hasGroup('dire') === false
* - $this->entity->hasGroup('radiant') === true
*/
protected function setUpGroups(HasGroup $entity): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/entities/ShieldEntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ final class ShieldEntityTest extends EntityTestCase
/**
* Creates the scenario for entities that implement HasGroup
* to verify the following checks:
* - $this->entity->hasGroup('Dire') === false
* - $this->entity->hasGroup('Radiant') === true
* - $this->entity->hasGroup('dire') === false
* - $this->entity->hasGroup('radiant') === true
*
* @param ShieldEntity $entity
*/
Expand Down

0 comments on commit 5441379

Please sign in to comment.