From cdfe0ce1978c865b4ca64b338aa993156e0c7e08 Mon Sep 17 00:00:00 2001 From: Paul Baranowski Date: Wed, 30 Mar 2011 17:32:23 -0400 Subject: [PATCH] Tweaks to the calendar load test. --- application/models/tests/populator.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/application/models/tests/populator.php b/application/models/tests/populator.php index 9f0445eb6..98992b650 100644 --- a/application/models/tests/populator.php +++ b/application/models/tests/populator.php @@ -1,12 +1,12 @@ create("Calendar Load test playlist ".uniqid()); // Add a file $values = array("filepath" => __DIR__."/test10001.mp3"); $storedFile = StoredFile::Insert($values, false); +$result = $playlist->addAudioClip($storedFile->getId()); // Add a file $values = array("filepath" => __DIR__."/test10002.mp3"); $storedFile2 = StoredFile::Insert($values, false); -$playlist = new Playlist(); -$playlist->create("Calendar Load test playlist ".uniqid()); -$result = $playlist->addAudioClip($storedFile->getId()); $result = $playlist->addAudioClip($storedFile2->getId()); $result = $playlist->addAudioClip($storedFile2->getId()); @@ -73,11 +73,11 @@ for ($days=1; $days<100; $days=$days+1) $data['add_show_hosts'] =""; $showId = Show::create($data); Show::populateShowUntil($showId, "2012-01-01 00:00:00"); - + // populating the show with a playlist $show = new ShowInstance($showId); $show->scheduleShow(array($playlist->getId())); - + $setHour = $setHour + 1; } // set the next day