support budget and timeBudget in API calls (#1658)

This commit is contained in:
Kevin Papst
2020-04-23 18:49:48 +02:00
committed by GitHub
parent f8331b74c7
commit 0debc70ead
6 changed files with 29 additions and 7 deletions

View File

@@ -124,6 +124,8 @@ class CustomerControllerTest extends APIControllerBaseTest
'country' => 'DE',
'currency' => 'EUR',
'timezone' => 'Europe/Berlin',
'budget' => '999',
'timeBudget' => '7200',
];
$this->request($client, '/api/customers', 'POST', [], json_encode($data));
$this->assertTrue($client->getResponse()->isSuccessful());
@@ -178,6 +180,8 @@ class CustomerControllerTest extends APIControllerBaseTest
'country' => 'DE',
'currency' => 'EUR',
'timezone' => 'Europe/Berlin',
'budget' => '999',
'timeBudget' => '7200',
];
$this->request($client, '/api/customers/1', 'PATCH', [], json_encode($data));
$this->assertTrue($client->getResponse()->isSuccessful());