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
8282 $ this ->_localeDateMock = $ this ->getMockForAbstractClass (TimezoneInterface::class);
8383 $ this ->_eavConfigMock = $ this ->createMock (Config::class);
8484 $ this ->_priceProcessorMock = $ this ->createMock (Processor::class);
85-
85+ $ this -> metadataPool = $ this -> createMock (MetadataPool::class);
8686 $ this ->metadataMock = $ this ->createMock (EntityMetadata::class);
8787
8888 $ this ->_model = new RefreshSpecialPrices (
@@ -91,15 +91,9 @@ protected function setUp(): void
9191 $ this ->_dateTimeMock ,
9292 $ this ->_localeDateMock ,
9393 $ this ->_eavConfigMock ,
94- $ this ->_priceProcessorMock
94+ $ this ->_priceProcessorMock ,
95+ $ this ->metadataPool
9596 );
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 );
10397 }
10498
10599 public function testRefreshSpecialPrices ()
You can’t perform that action at this time.
0 commit comments