File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
app/code/Magento/Catalog/Test/Unit/Cron Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ protected function setUp(): void
82
82
$ this ->_localeDateMock = $ this ->getMockForAbstractClass (TimezoneInterface::class);
83
83
$ this ->_eavConfigMock = $ this ->createMock (Config::class);
84
84
$ this ->_priceProcessorMock = $ this ->createMock (Processor::class);
85
-
85
+ $ this -> metadataPool = $ this -> createMock (MetadataPool::class);
86
86
$ this ->metadataMock = $ this ->createMock (EntityMetadata::class);
87
87
88
88
$ this ->_model = new RefreshSpecialPrices (
@@ -91,15 +91,9 @@ protected function setUp(): void
91
91
$ this ->_dateTimeMock ,
92
92
$ this ->_localeDateMock ,
93
93
$ this ->_eavConfigMock ,
94
- $ this ->_priceProcessorMock
94
+ $ this ->_priceProcessorMock ,
95
+ $ this ->metadataPool
95
96
);
96
-
97
- $ this ->metadataPool = $ this ->createMock (MetadataPool::class);
98
-
99
- $ reflection = new \ReflectionClass (get_class ($ this ->_model ));
100
- $ reflectionProperty = $ reflection ->getProperty ('metadataPool ' );
101
- $ reflectionProperty ->setAccessible (true );
102
- $ reflectionProperty ->setValue ($ this ->_model , $ this ->metadataPool );
103
97
}
104
98
105
99
public function testRefreshSpecialPrices ()
You can’t perform that action at this time.
0 commit comments