Test Setup Failed
Push — master ( 68f01d...d00a46 )
by
unknown
03:43
created
Tests/Unit/RelatedItem/UpsellProduct/FinderDatabaseStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $productA = $this->getProduct(['id' => 1]);
38 38
         $productB = $this->getProduct(['id' => 2]);
39 39
         $productC = $this->getProduct(['id' => 3]);
40
-        $expectedResult =[$productB, $productC];
40
+        $expectedResult = [$productB, $productC];
41 41
         $this->relatedItemsFunctionalityShouldBeEnabled();
42 42
         $this->andProductRepositoryShouldFindUpsell($productA, 2, $expectedResult);
43 43
         $this->andShouldNotBeBidirectional();
Please login to merge, or discard this patch.
ProductBundle/Tests/Unit/ProductVariant/TypeHandler/EnumTypeHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $this->formFactory->expects($this->once())
63 63
             ->method('createNamed')
64
-            ->with($fieldName, EnumSelectType::NAME, null, $this->callback(function (array $options) use ($fieldName) {
64
+            ->with($fieldName, EnumSelectType::NAME, null, $this->callback(function(array $options) use ($fieldName) {
65 65
                 $disabledValues = ['red', 'yellow'];
66 66
 
67 67
                 $this->assertEquals([
Please login to merge, or discard this patch.
Tests/Unit/Provider/ProductVariantAvailabilityProviderTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $doctrineHelper->expects($this->any())
82 82
             ->method('getSingleEntityIdentifier')
83 83
             ->willReturnCallback(
84
-                function ($variantValue) {
84
+                function($variantValue) {
85 85
                     return $variantValue->getId();
86 86
                 }
87 87
             );
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
         $this->enumHandler->expects($this->any())
479 479
             ->method('getPossibleValues')
480 480
             ->willReturnCallback(
481
-                function ($fieldName) use ($variantsData) {
481
+                function($fieldName) use ($variantsData) {
482 482
                     return isset($variantsData[$fieldName]['values']) ? $variantsData[$fieldName]['values'] : [];
483 483
                 }
484 484
             );
@@ -498,10 +498,10 @@  discard block
 block discarded – undo
498 498
             ->expects($this->any())
499 499
             ->method('getSimpleProductsByVariantFieldsQueryBuilder')
500 500
             ->willReturnCallback(
501
-                function ($configurableProduct, array $variantParameters) use ($simpleProducts) {
501
+                function($configurableProduct, array $variantParameters) use ($simpleProducts) {
502 502
                     $filteredProducts = array_filter(
503 503
                         $simpleProducts,
504
-                        function (Product $simpleProduct) use ($variantParameters) {
504
+                        function(Product $simpleProduct) use ($variantParameters) {
505 505
                             foreach ($variantParameters as $name => $value) {
506 506
                                 if ($simpleProduct->{$name} != $value) {
507 507
                                     return false;
Please login to merge, or discard this patch.
Tests/Unit/DataGrid/EventListener/FrontendProductGridEventListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
         $entityNameResolver->expects($this->any())
177 177
             ->method('getName')
178 178
             ->willReturnCallback(
179
-                function ($entity, $format, $locale) {
179
+                function($entity, $format, $locale) {
180 180
                     return (string)$entity . '_' . $locale;
181 181
                 }
182 182
             );
Please login to merge, or discard this patch.
ProductBundle/Tests/Unit/Api/Processor/Shared/ProcessImagePathsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             ->with(['image' => $initialResults['id']])
89 89
             ->willReturn($productImage);
90 90
 
91
-        $entityConfig  = new EntityDefinitionConfig();
91
+        $entityConfig = new EntityDefinitionConfig();
92 92
         $entityConfig->addField('filePath');
93 93
         $entityConfig->addField('mimeType');
94 94
         $entityConfig->addField('id');
Please login to merge, or discard this patch.
Tests/Unit/ImportExport/Normalizer/ProductImageNormalizerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             ->method('setObjectValue')
128 128
             ->will(
129 129
                 $this->returnCallback(
130
-                    function (ProductImage $result, $fieldName, $value) {
130
+                    function(ProductImage $result, $fieldName, $value) {
131 131
                         return $result->{'add' . ucfirst(substr($fieldName, 0, -1))}(reset($value));
132 132
                     }
133 133
                 )
Please login to merge, or discard this patch.
Tests/Unit/EventListener/ProductVariantCustomFieldsDatagridListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         $this->listener->onBuildBeforeHideUnsuitable($event);
167 167
 
168 168
         $expectedConfigValue = $this->getInitConfig();
169
-        $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0' ]);
169
+        $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0']);
170 170
 
171 171
         $this->setValueByPath($expectedConfigValue, '[source][query][where][or]', [
172 172
             sprintf('%s.id IS NOT NULL', self::PRODUCT_VARIANT_LINK_ALIAS)
Please login to merge, or discard this patch.
Unit/EventListener/ScopedProductSearchQueryRestrictionEventListenerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Oro\Bundle\ProductBundle\EventListener\ScopedProductSearchQueryRestrictionEventListener;
10 10
 
11 11
 class ScopedProductSearchQueryRestrictionEventListenerTest extends
12
- AbstractProductSearchQueryRestrictionEventListenerTest
12
+    AbstractProductSearchQueryRestrictionEventListenerTest
13 13
 {
14 14
     const SCOPE = 'test_scope';
15 15
 
Please login to merge, or discard this patch.
Validator/Constraints/AttributeFamilyUsageInVariantFieldValidatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         $this->doctrineHelper->expects($this->any())
72 72
             ->method('getEntityRepositoryForClass')
73
-            ->willReturnCallback(function ($class) {
73
+            ->willReturnCallback(function($class) {
74 74
                 switch ($class) {
75 75
                     case AttributeGroupRelation::class:
76 76
                         return $this->attributeRelationRepository;
Please login to merge, or discard this patch.