From 964970ea11f92e033f8e63c7f389c8625585dc80 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 21 Jun 2022 11:44:43 +0000 Subject: [PATCH] fix data type in query for test UserScheduleShowTest:testGetUserSchedule, fixes #1195 Closes #1195 Merge request studip/studip!707 --- tests/jsonapi/UserScheduleShowTest.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/jsonapi/UserScheduleShowTest.php b/tests/jsonapi/UserScheduleShowTest.php index fc7529f8ebf..28eb576af9a 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'); -- GitLab