Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Oct 27, 2024
1 parent e0ecc89 commit 4951f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/Controller/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public function testCreateNewForm($expectedForm) {
$form->setId(7);
return $form;
});
$this->assertEquals(new DataResponse($expected, Http::STATUS_CREATED), $apiController->newForm());
$this->assertEquals(new DataResponse([], Http::STATUS_CREATED), $apiController->newForm());
}

public function dataCloneForm_exceptions() {
Expand Down Expand Up @@ -593,7 +593,7 @@ public function testCloneForm($old, $new) {
->method('getForm')
->with(14)
->willReturn(new DataResponse('success', Http::STATUS_CREATED));
$this->assertEquals(new DataResponse('success', Http::STATUS_CREATED), $apiController->newForm(7));
$this->assertEquals(new DataResponse([], Http::STATUS_CREATED), $apiController->newForm(7));
}

private function formAccess(bool $hasUserAccess = true, bool $hasFormExpired = false, bool $canSubmit = true) {
Expand Down

0 comments on commit 4951f9c

Please sign in to comment.