-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathProductTest.php
45 lines (40 loc) · 998 Bytes
/
ProductTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Created by PhpStorm.
* @author Tareq Mahmood <tareqtms@yahoo.com>
* Created at: 9/9/16 12:44 PM UTC+06:00
*/
namespace PHPShopify;
class ProductTest extends TestSimpleResource
{
/**
* @inheritDoc
*/
public $postArray = array(
"title" => "Burton Custom Freestlye 151",
"body_html" => "<strong>Good snowboard!</strong>",
"vendor" => "Burton",
"product_type" => "Snowboard",
"variants" => [
[
"option1" => "First",
"price" => "10.00",
"sku" => 123
],
[
"option1" => "Second",
"price" => "20.00",
"sku" => "123"
]
]
);
/**
* @inheritDoc
* Posting without title, triggers an error
*/
public $errorPostArray = array("description" => "A mystery!");
/**
* @inheritDoc
*/
public $putArray = array("title" => "New product title");
}