@@ -667,6 +667,8 @@ public function testUpdateFormProperties(array $expected): void {
667667 $ this ->assertEquals ($ this ->testForms [0 ]['id ' ], $ data );
668668
669669 $ expected ['lastUpdated ' ] = time ();
670+ $ expected ['lockedBy ' ] = 'test ' ;
671+ $ expected ['lockedUntil ' ] = time () + 900 ;
670672
671673 // Check if form equals updated form.
672674 $ this ->testGetFullForm ($ expected );
@@ -779,6 +781,8 @@ public function testUpdateQuestionProperties(array $fullFormExpected): void {
779781 $ this ->assertEquals ($ this ->testForms [0 ]['questions ' ][0 ]['id ' ], $ data );
780782
781783 $ fullFormExpected ['lastUpdated ' ] = time ();
784+ $ fullFormExpected ['lockedBy ' ] = 'test ' ;
785+ $ fullFormExpected ['lockedUntil ' ] = time () + 900 ;
782786
783787 // Check if form equals updated form.
784788 $ this ->testGetFullForm ($ fullFormExpected );
@@ -825,6 +829,8 @@ public function testReorderQuestions(array $fullFormExpected): void {
825829 ], $ data );
826830
827831 $ fullFormExpected ['lastUpdated ' ] = time ();
832+ $ fullFormExpected ['lockedBy ' ] = 'test ' ;
833+ $ fullFormExpected ['lockedUntil ' ] = time () + 900 ;
828834
829835 // Check if form equals updated form.
830836 $ this ->testGetFullForm ($ fullFormExpected );
@@ -855,6 +861,8 @@ public function testDeleteQuestion(array $fullFormExpected) {
855861 $ this ->assertEquals ($ this ->testForms [0 ]['questions ' ][0 ]['id ' ], $ data );
856862
857863 $ fullFormExpected ['lastUpdated ' ] = time ();
864+ $ fullFormExpected ['lockedBy ' ] = 'test ' ;
865+ $ fullFormExpected ['lockedUntil ' ] = time () + 900 ;
858866
859867 $ this ->testGetFullForm ($ fullFormExpected );
860868 }
@@ -940,6 +948,8 @@ public function testUpdateOptionProperties(array $fullFormExpected): void {
940948 $ this ->assertEquals ($ this ->testForms [0 ]['questions ' ][1 ]['options ' ][0 ]['id ' ], $ data );
941949
942950 $ fullFormExpected ['lastUpdated ' ] = time ();
951+ $ fullFormExpected ['lockedBy ' ] = 'test ' ;
952+ $ fullFormExpected ['lockedUntil ' ] = time () + 900 ;
943953
944954 // Check if form equals updated form.
945955 $ this ->testGetFullForm ($ fullFormExpected );
@@ -968,6 +978,8 @@ public function testDeleteOption(array $fullFormExpected) {
968978 $ this ->assertEquals ($ this ->testForms [0 ]['questions ' ][1 ]['options ' ][0 ]['id ' ], $ data );
969979
970980 $ fullFormExpected ['lastUpdated ' ] = time ();
981+ $ fullFormExpected ['lockedBy ' ] = 'test ' ;
982+ $ fullFormExpected ['lockedUntil ' ] = time () + 900 ;
971983 $ fullFormExpected ['questions ' ][1 ]['options ' ][0 ]['order ' ] = 1 ;
972984 $ fullFormExpected ['questions ' ][1 ]['options ' ][1 ]['order ' ] = 2 ;
973985
0 commit comments