This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
CatalogRule/Test/Unit/Model/Indexer
Catalog/Test/Unit/Model/Category/Product Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,20 @@ class PositionResolverTest extends \PHPUnit\Framework\TestCase
48
48
'1 ' => 102
49
49
];
50
50
51
+ /**
52
+ * @var array
53
+ */
51
54
private $ flippedPositions = [
52
55
'100 ' => 3 ,
53
56
'101 ' => 2 ,
54
57
'102 ' => 1
55
58
];
56
59
60
+ /**
61
+ * @var int
62
+ */
63
+ private $ categoryId = 1 ;
64
+
57
65
protected function setUp ()
58
66
{
59
67
$ this ->context = $ this ->getMockBuilder (Context::class)
@@ -107,6 +115,6 @@ public function testGetPositions()
107
115
->method ('fetchCol ' )
108
116
->willReturn ($ this ->positions );
109
117
110
- $ this ->assertEquals ($ this ->flippedPositions , $ this ->model ->getPositions (1 ));
118
+ $ this ->assertEquals ($ this ->flippedPositions , $ this ->model ->getPositions ($ this -> categoryId ));
111
119
}
112
120
}
Original file line number Diff line number Diff line change @@ -209,8 +209,7 @@ protected function setUp()
209
209
'dateFormat ' => $ this ->dateFormat ,
210
210
'dateTime ' => $ this ->dateTime ,
211
211
'productFactory ' => $ this ->productFactory ,
212
- 1000 ,
213
- 'productLoader ' => $ this ->productLoader
212
+ 'productLoader ' => $ this ->productLoader ,
214
213
]
215
214
);
216
215
You can’t perform that action at this time.
0 commit comments