Skip to content

Commit ffa6cf9

Browse files
committed
Update unit tests to match current library.
1 parent b7a84a9 commit ffa6cf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/MailchimpEcommerceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ public function testAddProduct() {
586586
$store_id = 'MC001';
587587
$id = 'sku0001';
588588
$title = 'Test Product 001';
589+
$url = 'http://example.org/';
589590
$variant_1 = (object) [
590591
'id' => 'PROD001A',
591592
'title' => "Freddie's Jokes Volume 1",
@@ -596,7 +597,7 @@ public function testAddProduct() {
596597

597598
$mc = new MailchimpEcommerce();
598599

599-
$mc->addProduct($store_id, $id, $title, $variants);
600+
$mc->addProduct($store_id, $id, $title, $url, $variants);
600601
$this->assertEquals('POST', $mc->getClient()->method);
601602

602603
$this->assertEquals($mc->getEndpoint() . '/ecommerce/stores/' . $store_id . '/products', $mc->getClient()->uri);

tests/src/MailchimpEcommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getStore($store_id, $parameters = []) {
5959
/**
6060
* @inheritdoc
6161
*/
62-
public function addStore($id, $store, $batch = FALSE) {
62+
public function addStore($id, $store, $parameters = [], $batch = FALSE) {
6363
parent::addStore($id, $store, $batch);
6464

6565
$parameters = [

0 commit comments

Comments
 (0)