Skip to content

Commit

Permalink
Fix test cases to represent real usecases
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jun 7, 2024
1 parent d0ffb05 commit 0420520
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Tests/Functional/Controller/TaskControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,10 @@ public function testPost(

$this->client->request(
'POST',
'/api/tasks',
'/api/tasks?locale=' . $locale . '&entityClass=' . $entityClass . '&entityId=' . $entityId,
[
'handlerClass' => $handlerClass,
'schedule' => $date->format('Y-m-d\TH:i:s'),
'entityClass' => $entityClass,
'entityId' => $entityId,
'locale' => $locale,
]
);
$this->assertHttpStatusCode(200, $this->client->getResponse());
Expand Down Expand Up @@ -310,13 +307,10 @@ public function testPut(

$this->client->request(
'PUT',
'/api/tasks/' . $postData['id'],
'/api/tasks/' . $postData['id'] . '?locale=' . $locale . '&entityClass=' . $entityClass . '&entityId=' . $postData['entityId'],
[
'handlerClass' => $handlerClass,
'entityId' => $postData['entityId'],
'taskId' => $postData['taskId'],
'entityClass' => $entityClass,
'locale' => $locale,
'schedule' => $date->format('Y-m-d\TH:i:s'),
]
);
Expand Down

0 comments on commit 0420520

Please sign in to comment.