aboutsummaryrefslogtreecommitdiff
path: root/tests/jsonapi/UserScheduleShowTest.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-09-02 11:45:02 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-09-02 11:45:02 +0000
commit1a938fd7c378683ce0cde9a4f2b1b247cc3a08fe (patch)
tree5c401b28990d5575d7cef9319f836940e394df93 /tests/jsonapi/UserScheduleShowTest.php
parentb4f60d28c65cf6ce98ed660e1dbb9347958f6875 (diff)
TIC 4421, closes #4421
Closes #4421 Merge request studip/studip!3347
Diffstat (limited to 'tests/jsonapi/UserScheduleShowTest.php')
-rw-r--r--tests/jsonapi/UserScheduleShowTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/jsonapi/UserScheduleShowTest.php b/tests/jsonapi/UserScheduleShowTest.php
index 9f5abd2..ab002ae 100644
--- a/tests/jsonapi/UserScheduleShowTest.php
+++ b/tests/jsonapi/UserScheduleShowTest.php
@@ -25,8 +25,8 @@ class UserScheduleShowTest extends \Codeception\Test\Unit
$credentials = $this->tester->getCredentialsForTestAutor();
$stmt = \DBManager::get()->prepare(
- "INSERT INTO schedule (start, end, day, title, content, color, user_id)
- VALUES (?, ?, ?, ?, ?, ?, ?)"
+ "INSERT INTO schedule_entries (start_time, end_time, dow, label, content, user_id, mkdate, chdate)
+ VALUES (?, ?, ?, ?, ?, ?, UNIX_TIMESTAMP(), UNIX_TIMESTAMP())"
);
$stmt->execute([
1000,
@@ -34,8 +34,7 @@ class UserScheduleShowTest extends \Codeception\Test\Unit
1,
'a title',
'some content',
- 1,
- $credentials['id'],
+ $credentials['id']
]);
$scheduleId = \DBManager::get()->lastInsertId();