aboutsummaryrefslogtreecommitdiff
path: root/tests/jsonapi/UserScheduleShowTest.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-06-21 11:44:43 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-06-21 11:44:43 +0000
commit964970ea11f92e033f8e63c7f389c8625585dc80 (patch)
treeac31a8fcf9d9cbb04601061195e611592d0d41ce /tests/jsonapi/UserScheduleShowTest.php
parentd00b992300fffe28a6c0e5554fb7dff7d7f1ab4c (diff)
fix data type in query for test UserScheduleShowTest:testGetUserSchedule, fixes #1195
Closes #1195 Merge request studip/studip!707
Diffstat (limited to 'tests/jsonapi/UserScheduleShowTest.php')
-rw-r--r--tests/jsonapi/UserScheduleShowTest.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/jsonapi/UserScheduleShowTest.php b/tests/jsonapi/UserScheduleShowTest.php
index fc7529f..28eb576 100644
--- a/tests/jsonapi/UserScheduleShowTest.php
+++ b/tests/jsonapi/UserScheduleShowTest.php
@@ -28,13 +28,15 @@ class UserScheduleShowTest extends \Codeception\Test\Unit
"INSERT INTO schedule (start, end, day, title, content, color, user_id)
VALUES (?, ?, ?, ?, ?, ?, ?)"
);
- $stmt->execute(
- [
- 1000, 1200, 1,
- 'a title', 'some content',
- '#c0ffee', $credentials['id']
- ]
- );
+ $stmt->execute([
+ 1000,
+ 1200,
+ 1,
+ 'a title',
+ 'some content',
+ 1,
+ $credentials['id'],
+ ]);
$scheduleId = \DBManager::get()->lastInsertId();
$app = $this->tester->createApp($credentials, 'get', '/users/{id}/schedule', UserScheduleShow::class, 'get-schedule');