public function testGetAddToWishlistParams() { $json = $this->_block->getAddToWishlistParams($this->_product); $params = (array) json_decode($json); $data = (array) $params['data']; $this->assertEquals('1', $data['product']); $this->assertArrayHasKey('uenc', $data); $this->assertStringEndsWith('wishlist/index/add/', $params['action']); }