aboutsummaryrefslogtreecommitdiff
path: root/tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-18 13:47:26 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-18 13:47:26 +0000
commitfe2781093e8f3c0861661b9c55737d615c8741b9 (patch)
tree3317720c41f9a256c9d6f5986612f84e93a96c8f /tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php
parentc0fd6686718362bd7340243f29bbd922faf6e78c (diff)
fix tests for consultations, fixes #1794
Closes #1794 Merge request studip/studip!1175
Diffstat (limited to 'tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php')
-rw-r--r--tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php b/tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php
index 56ef183..590343d 100644
--- a/tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php
+++ b/tests/jsonapi/ConsultationsBookingCreateBySlotIndexTest.php
@@ -27,12 +27,12 @@ class ConsultationsBookingCreateBySlotIndexTest extends Codeception\Test\Unit
);
}
- public function testAutorMayCreateNotCreateBookingDueToLock(): void
+ public function testAutorMayNotCreateBookingDueToLock(): void
{
$credentials = $this->tester->getCredentialsForTestDozent();
$range = User::find($credentials['id']);
- $block = $this->createBlockWithSlotsForRange($range, ['lock_time' => 2]);
+ $block = $this->createBlockWithSlotsForRange($range, true);
$slot = $this->getSlotFromBlock($block);
$response = $this->createBooking(