public function testGetAddItem() { $productData = ['sku' => 'AAAA-6666', 'name' => 'Test Product 2', 'brand' => 'Test Brand 2', 'category' => 'Test Category 3/Test Category 4', 'variant' => 'yellow', 'price' => 50.0, 'quantity' => 1, 'coupon_code' => 'TEST 2', 'position' => 2]; $this->analytics->addProduct($productData); $productData = ['sku' => 'AAAA-5555', 'name' => 'Test Product', 'brand' => 'Test Brand', 'category' => 'Test Category 1/Test Category 2', 'variant' => 'blue', 'price' => 85.0, 'position' => 4]; $this->analytics->setProductImpressionListName('List_1', 1); $this->analytics->addProductImpression($productData, 1); $this->assertEquals('AAAA-6666', $this->analytics->getProduct()[0]['sku']); $this->assertEquals('AAAA-5555', $this->analytics->getProductImpression(1)[0]['sku']); $this->assertEquals('List_1', $this->analytics->getProductImpressionListName(1)); }