Skip to content
Snippets Groups Projects
Commit 964970ea authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fix data type in query for test UserScheduleShowTest:testGetUserSchedule, fixes #1195

Closes #1195

Merge request studip/studip!707
parent d00b9923
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment