@@ -99,11 +99,10 @@ public function testReindexFull()
99
99
100
100
$ this ->indexerBuilder ->reindexFull ();
101
101
102
- $ this ->assertEquals (9.8 , $ this ->resourceRule ->getRulePrice (new \DateTime (), 1 , 1 , $ this ->product ->getId ()));
103
- $ this ->assertEquals (
104
- 9.8 ,
105
- $ this ->resourceRule ->getRulePrice (new \DateTime (), 1 , 1 , $ this ->productSecond ->getId ())
106
- );
102
+ $ rulePrice = $ this ->resourceRule ->getRulePrice (new \DateTime (), 1 , 1 , $ this ->product ->getId ());
103
+ $ this ->assertEquals (9.8 , $ rulePrice );
104
+ $ rulePrice = $ this ->resourceRule ->getRulePrice (new \DateTime (), 1 , 1 , $ this ->productSecond ->getId ());
105
+ $ this ->assertEquals (9.8 , $ rulePrice );
107
106
$ this ->assertFalse ($ this ->resourceRule ->getRulePrice (new \DateTime (), 1 , 1 , $ this ->productThird ->getId ()));
108
107
}
109
108
@@ -113,7 +112,7 @@ protected function prepareProducts()
113
112
$ product ->load ($ product ->getId ());
114
113
$ this ->product = $ product ;
115
114
116
- $ this ->product ->setData ('test_attribute ' , 'test_attribute_value ' )->save ();
115
+ $ this ->product ->setStoreId ( 0 )-> setData ('test_attribute ' , 'test_attribute_value ' )->save ();
117
116
$ this ->productSecond = clone $ this ->product ;
118
117
$ this ->productSecond ->setId (null )->setUrlKey ('product-second ' )->save ();
119
118
$ this ->productThird = clone $ this ->product ;
0 commit comments