Beispiel #1
0
 /**
  * @return void
  */
 public function testExpandItemMustNotChangeGroupKeyWhenGroupKeyIsSet()
 {
     $itemTransfer = new ItemTransfer();
     $itemTransfer->setSku(self::SKU);
     $itemTransfer->setGroupKey(self::SKU);
     $changeTransfer = new CartChangeTransfer();
     $changeTransfer->addItem($itemTransfer);
     $plugin = new SkuGroupKeyPlugin(new Factory('Cart'), Locator::getInstance());
     $plugin->expandItems($changeTransfer);
     $this->assertSame(self::SKU, $changeTransfer->getItems()[0]->getGroupKey());
 }
Beispiel #2
0
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->locator = Locator::getInstance();
 }
 /**
  * @return \Spryker\Shared\Kernel\AbstractLocatorLocator|\Generated\Zed\Ide\AutoCompletion
  */
 protected function getLocator()
 {
     return Locator::getInstance();
 }
Beispiel #4
0
 /**
  * @return \Generated\Zed\Ide\AutoCompletion|\Spryker\Shared\Kernel\LocatorLocatorInterface
  */
 public function getLocator()
 {
     return Locator::getInstance();
 }
 /**
  * @return \Generated\Zed\Ide\AutoCompletion
  */
 private function getLocator()
 {
     return Locator::getInstance();
 }