diff --git a/tests/Unit/Controller/ApiControllerTest.php b/tests/Unit/Controller/ApiControllerTest.php index 4369d18bf..ac3e7621a 100644 --- a/tests/Unit/Controller/ApiControllerTest.php +++ b/tests/Unit/Controller/ApiControllerTest.php @@ -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() { @@ -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) {