1 | <?php |
||
8 | class ProjectSettingsTest extends AbstractAPITest |
||
9 | { |
||
10 | protected $projectSettings = array( |
||
11 | 'descriptor' => 'demo', |
||
12 | 'name' => array( |
||
13 | 'en' => 'Demo Project for Universal Protocol', |
||
14 | ), |
||
15 | 'url' => 'http://xsolla.com', |
||
16 | 'description' => array(), |
||
17 | 'payment_url' => 'https://mygame.com/sample.universal.php', |
||
18 | 'key' => 'KEY', |
||
19 | 'return_url' => 'http://mygame.com/return.php', |
||
20 | 'user_billing_enabled' => true, |
||
21 | 'show_user_in_paystation' => true, |
||
22 | 'locale_list' => array( |
||
23 | 'en', |
||
24 | ), |
||
25 | 'components' => array( |
||
26 | 'virtual_currency' => array( |
||
27 | 'enabled' => true, |
||
28 | 'custom_name' => array( |
||
29 | 'en' => 'Virtual currency custom name', |
||
30 | ), |
||
31 | ), |
||
32 | 'items' => array( |
||
33 | 'enabled' => true, |
||
34 | 'custom_name' => array( |
||
35 | 'en' => 'Items custom name', |
||
36 | ), |
||
37 | ), |
||
38 | 'simple_checkout' => array( |
||
39 | 'enabled' => true, |
||
40 | 'custom_name' => array( |
||
41 | 'en' => 'Simple checkout custom name', |
||
42 | ), |
||
43 | ), |
||
44 | 'subscriptions' => array( |
||
45 | 'enabled' => true, |
||
46 | 'custom_name' => array( |
||
47 | 'en' => 'Subscriptions custom name', |
||
48 | ), |
||
49 | ), |
||
50 | ), |
||
51 | 'send_json_to_paystation' => false, |
||
52 | 'is_external_id_required' => false, |
||
53 | 'ipn_enabled' => true, |
||
54 | ); |
||
55 | |||
56 | public function testCreateProject() |
||
60 | |||
61 | public function testGetProject() |
||
70 | |||
71 | public function testUpdateProject() |
||
80 | |||
81 | public function testListProjects() |
||
86 | } |
||
87 |