File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -508,28 +508,17 @@ public function testGetStoreIds()
508
508
/**
509
509
* @dataProvider getSingleStoreIds
510
510
* @param bool $isObjectNew
511
+ * @return void
511
512
*/
512
- public function testGetStoreSingleSiteModelIds (
513
- bool $ isObjectNew
514
- ) {
513
+ public function testGetStoreSingleSiteModelIds (bool $ isObjectNew ): void
514
+ {
515
515
$ websiteIDs = [0 => 2 ];
516
- $ this ->model ->setWebsiteIds (
517
- !$ isObjectNew ? $ websiteIDs : array_flip ($ websiteIDs )
518
- );
516
+ $ this ->model ->setWebsiteIds (!$ isObjectNew ? $ websiteIDs : array_flip ($ websiteIDs ));
519
517
520
518
$ this ->model ->isObjectNew ($ isObjectNew );
521
519
522
- $ this ->storeManager ->expects (
523
- $ this ->exactly (
524
- (int )!$ isObjectNew
525
- )
526
- )
527
- ->method ('isSingleStoreMode ' )
528
- ->willReturn (true );
529
-
530
- $ this ->website ->expects (
531
- $ this ->once ()
532
- )->method ('getStoreIds ' )
520
+ $ this ->website ->expects ($ this ->once ())
521
+ ->method ('getStoreIds ' )
533
522
->willReturn ($ websiteIDs );
534
523
535
524
$ this ->assertEquals ($ websiteIDs , $ this ->model ->getStoreIds ());
You can’t perform that action at this time.
0 commit comments