/** * @covers \Webburza\Sylius\GoogleEcommerceBundle\Client::render * @covers \Webburza\Sylius\GoogleEcommerceBundle\Client::renderCartHandler * @covers \Webburza\Sylius\GoogleEcommerceBundle\Client::<private> * * @uses \Webburza\Sylius\GoogleEcommerceBundle\Client::__construct * @uses \Webburza\Sylius\GoogleEcommerceBundle\Model\Product */ public function testCanRenderCartRemoveHandler() { $product = static::mockProduct('123ABC', 'My Product', 9900); static::assertFixtureEquals('client-handler-cart-remove.html', $this->object->renderCartHandler($product, ['event' => 'click', 'action' => 'remove', 'variant' => 'Black'])); }
/** * @param SyliusOrder $order */ public function addPurchaseAction(SyliusOrder $order) { $this->client->addPurchaseAction($order); }