@@ -24,7 +24,8 @@ |
||
| 24 | 24 | |
| 25 | 25 | final class UniqueSimpleProductCodeValidatorSpec extends ObjectBehavior |
| 26 | 26 | { |
| 27 | - function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) { |
|
| 27 | + function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) |
|
| 28 | + { |
|
| 28 | 29 | $this->beConstructedWith($productVariantRepository); |
| 29 | 30 | $this->initialize($context); |
| 30 | 31 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | { |
| 56 | 56 | $this->getElement('save_configuration_button')->press(); |
| 57 | 57 | |
| 58 | - $this->getDocument()->waitFor(5, function (){ |
|
| 58 | + $this->getDocument()->waitFor(5, function () { |
|
| 59 | 59 | return false === $this->getElement('save_configuration_button')->hasClass('loading'); |
| 60 | 60 | } ); |
| 61 | 61 | } |