Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed Sep 11, 2024
1 parent 3b5e0d1 commit 413ab31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Unit/Controller/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,12 @@ public function testCreateNewForm($expectedForm) {
$form->setLastUpdated(123456789);
return $form;
});
$this->formMapper->method('findById')->with(7)->willReturn($expectedForm);
$apiController->expects($this->once())
->method('getForm')
->with(7)
->willReturn(new DataResponse('succeeded'));
$this->assertEquals(new DataResponse('succeeded'), $apiController->newForm());
$this->assertEquals(new DataResponse('succeeded'), $this->$apiController->newForm());
}

public function dataCloneForm_exceptions() {
Expand Down

0 comments on commit 413ab31

Please sign in to comment.