Пример #1
0
 public function testGetSharedWebsiteStoreIds()
 {
     $sharedIds = null;
     $storeIds = [1, 2, 3];
     $websiteMock = $this->getMockBuilder('Magento\\Store\\Model\\Website')->disableOriginalConstructor()->getMock();
     $websiteMock->expects($this->once())->method('getStoreIds')->will($this->returnValue($storeIds));
     $this->quote->setData('shared_store_ids', $sharedIds);
     $this->quote->setWebsite($websiteMock);
     $result = $this->quote->getSharedStoreIds();
     $this->assertEquals($storeIds, $result);
 }