Skip to content

Commit ef8beb3

Browse files
committed
extend testCanSubmit by allowEditGood and allowEditNotGood
Signed-off-by: Timotheus Pokorra <[email protected]>
1 parent 9f861be commit ef8beb3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/Unit/Service/FormsServiceTest.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,21 @@ public function dataCanSubmit() {
810810
'allowEdit' => false,
811811
'hasFormSubmissionsByUser' => true,
812812
'expected' => true
813-
]
813+
],
814+
'allowEditGood' => [
815+
'ownerId' => 'someUser',
816+
'submitMultiple' => false,
817+
'allowEdit' => true,
818+
'hasFormSubmissionsByUser' => true,
819+
'expected' => true
820+
],
821+
'allowEditNotGood' => [
822+
'ownerId' => 'someUser',
823+
'submitMultiple' => false,
824+
'allowEdit' => false,
825+
'hasFormSubmissionsByUser' => true,
826+
'expected' => false
827+
],
814828
];
815829
}
816830
/**

0 commit comments

Comments
 (0)