Skip to content

Commit 87c8f5a

Browse files
author
Stanislav Idolov
committed
Fixed static test failures
1 parent fd585a8 commit 87c8f5a

File tree

15 files changed

+27
-14
lines changed

15 files changed

+27
-14
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/ProductList/ToolbarTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ToolbarTest extends \PHPUnit_Framework_TestCase
3232
* @var \Magento\Framework\App\Config\ScopeConfigInterface | \PHPUnit_Framework_MockObject_MockObject
3333
*/
3434
protected $scopeConfig;
35+
3536
/**
3637
* @var \Magento\Catalog\Model\Config | \PHPUnit_Framework_MockObject_MockObject
3738
*/

app/code/Magento/Catalog/Test/Unit/Block/Rss/Product/NewProductsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public function isAllowedDataProvider()
100100
[0, false]
101101
];
102102
}
103+
103104
/**
104105
* @dataProvider isAllowedDataProvider
105106
*/

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type/AbstractTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ protected function setUp()
126126
$attribute->expects($this->any())->method('getDefaultValue')->willReturn('default_value');
127127
$attribute->expects($this->any())->method('usesSource')->willReturn(true);
128128

129-
130129
$entityAttributes = [
131130
[
132131
'attribute_id' => 'attribute_id',

app/code/Magento/CatalogSearch/Test/Unit/Model/Adapter/Mysql/Filter/AliasResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2018 Magento, Inc. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

app/code/Magento/CatalogSearch/Test/Unit/Model/Adapter/Mysql/Filter/PreprocessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2018 Magento, Inc. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

app/code/Magento/CatalogSearch/Test/Unit/Model/AdvancedTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,37 @@ class AdvancedTest extends \PHPUnit_Framework_TestCase
1515
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\CatalogSearch\Model\ResourceModel\Advanced\Collection
1616
*/
1717
protected $collection;
18+
1819
/**
1920
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\CatalogSearch\Model\ResourceModel\Advanced
2021
*/
2122
protected $resource;
23+
2224
/**
2325
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\CatalogSearch\Model\ResourceModel\ResourceProvider
2426
*/
2527
protected $resourceProvider;
28+
2629
/**
2730
* @var \PHPUnit_Framework_MockObject_MockObject[]|\Magento\Catalog\Model\ResourceModel\Eav\Attribute[]
2831
*/
2932
protected $attributes;
33+
3034
/**
3135
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Data\Collection
3236
*/
3337
protected $dataCollection;
38+
3439
/**
3540
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Directory\Model\Currency
3641
*/
3742
private $currency;
43+
3844
/**
3945
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Store\Model\StoreManagerInterface
4046
*/
4147
private $storeManager;
48+
4249
/**
4350
* @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Store\Model\Store
4451
*/
@@ -380,7 +387,6 @@ private function addFiltersPriceDataProvider()
380387
];
381388
}
382389

383-
384390
/**
385391
* @param $backend
386392
* @param null $source

app/code/Magento/CatalogSearch/Test/Unit/Model/Search/Indexer/IndexStructureTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ class IndexStructureTest extends \PHPUnit_Framework_TestCase
1919
* @var \Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver|\PHPUnit_Framework_MockObject_MockObject
2020
*/
2121
private $indexScopeResolver;
22+
2223
/**
2324
* @var \Magento\Framework\App\ResourceConnection|\PHPUnit_Framework_MockObject_MockObject
2425
*/
2526
private $resource;
27+
2628
/**
2729
* @var AdapterInterface|\PHPUnit_Framework_MockObject_MockObject
2830
*/

app/code/Magento/Checkout/Test/Unit/Model/CartTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ protected function setUp()
8585
$this->quoteMock = $this->getMock(\Magento\Quote\Model\Quote::class, [], [], '', false);
8686
$this->eventManagerMock = $this->getMock(\Magento\Framework\Event\ManagerInterface::class);
8787
$this->storeManagerMock = $this->getMockForAbstractClass(\Magento\Store\Model\StoreManagerInterface::class);
88-
$this->productRepository = $this->getMockForAbstractClass(\Magento\Catalog\Api\ProductRepositoryInterface::class);
88+
$this->productRepository = $this->getMockForAbstractClass(
89+
\Magento\Catalog\Api\ProductRepositoryInterface::class
90+
);
8991
$this->stockRegistry = $this->getMockBuilder(\Magento\CatalogInventory\Model\StockRegistry::class)
9092
->disableOriginalConstructor()
9193
->setMethods(['getStockItem', '__wakeup'])

app/code/Magento/Checkout/Test/Unit/Model/Session/SuccessValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public function testIsValidTrue()
9797
protected function createSuccessValidator(\PHPUnit_Framework_MockObject_MockObject $checkoutSession)
9898
{
9999
return $this->objectManagerHelper->getObject(
100-
'Magento\Checkout\Model\Session\SuccessValidator', ['checkoutSession' => $checkoutSession]
100+
'Magento\Checkout\Model\Session\SuccessValidator',
101+
['checkoutSession' => $checkoutSession]
101102
);
102103
}
103104
}

app/code/Magento/GroupedProduct/Test/Unit/Model/Product/Initialization/Helper/ProductLinks/Plugin/GroupedTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class GroupedTest extends \PHPUnit_Framework_TestCase
2828
* @var \PHPUnit_Framework_MockObject_MockObject
2929
*/
3030
protected $productRepository;
31+
3132
/**
3233
* @var \Magento\GroupedProduct\Model\Product\Initialization\Helper\ProductLinks\Plugin\Grouped
3334
*/

0 commit comments

Comments
 (0)