mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
refactor #14922 [CS][DX] Refactor (github-actions[bot])
This PR was merged into the 1.13 branch.
Discussion
----------
This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
Commits
-------
5923a45553 [CS][DX] Refactor
This commit is contained in:
commit
c75bc1e9e2
1 changed files with 3 additions and 4 deletions
|
|
@ -161,7 +161,6 @@ final class HasEnabledEntityValidatorSpec extends ObjectBehavior
|
|||
$constraint->enabledPath = 'enabled';
|
||||
$constraint->objectManager = 'custom';
|
||||
|
||||
|
||||
$accessor->getValue($entity, 'enabled')->willReturn(false);
|
||||
$registry->getManager('custom')->willReturn($manager);
|
||||
$manager->getClassMetadata($entity->getWrappedObject()::class)->willReturn($metadata);
|
||||
|
|
@ -171,7 +170,7 @@ final class HasEnabledEntityValidatorSpec extends ObjectBehavior
|
|||
|
||||
$repository->findBy(['enabled' => true])->willReturn([
|
||||
$entity->getWrappedObject(),
|
||||
$anotherEntity->getWrappedObject()
|
||||
$anotherEntity->getWrappedObject(),
|
||||
]);
|
||||
|
||||
$context->buildViolation(Argument::cetera())->shouldNotBeCalled();
|
||||
|
|
@ -201,7 +200,7 @@ final class HasEnabledEntityValidatorSpec extends ObjectBehavior
|
|||
$manager->getRepository($entity->getWrappedObject()::class)->willReturn($repository);
|
||||
|
||||
$repository->findBy(['enabled' => true])->willReturn([
|
||||
$entity->getWrappedObject()
|
||||
$entity->getWrappedObject(),
|
||||
]);
|
||||
|
||||
$context->buildViolation($constraint->message)->willReturn($violationBuilder);
|
||||
|
|
@ -234,7 +233,7 @@ final class HasEnabledEntityValidatorSpec extends ObjectBehavior
|
|||
$manager->getRepository($entity->getWrappedObject()::class)->willReturn($repository);
|
||||
|
||||
$repository->findBy(['enabled' => true])->willReturn([
|
||||
$entity->getWrappedObject()
|
||||
$entity->getWrappedObject(),
|
||||
]);
|
||||
|
||||
$context->buildViolation($constraint->message)->willReturn($violationBuilder);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue