From 8457a3403b3bba0a1c7a72abf8178e6ded8f2825 Mon Sep 17 00:00:00 2001 From: drigato Date: Mon, 13 Jan 2014 11:53:00 -0500 Subject: [PATCH] CC-5651: Unit Test the Scheduler --- airtime_mvc/tests/application/models/ShowTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/tests/application/models/ShowTest.php b/airtime_mvc/tests/application/models/ShowTest.php index b57558460..42ed65149 100644 --- a/airtime_mvc/tests/application/models/ShowTest.php +++ b/airtime_mvc/tests/application/models/ShowTest.php @@ -160,7 +160,7 @@ class ShowTest extends Zend_Test_PHPUnit_DatabaseTestCase ); } - /* Tests that a show instances gets deleted from it's repeating sequence + /* Tests that a show instance gets deleted from it's repeating sequence * properly */ public function testDeleteShowInstance() @@ -170,14 +170,14 @@ class ShowTest extends Zend_Test_PHPUnit_DatabaseTestCase $data = ShowData::getWeeklyRepeatNoEndNoRRData(); $service_show = new Application_Service_ShowService(null, $data); $service_show->addUpdateShow($data); - //$service_show->deleteShow(3, true); + $service_show->deleteShow(3, true); $ds = new Zend_Test_PHPUnit_Db_DataSet_QueryDataSet( $this->getConnection() ); $ds->addTable('cc_show', 'select * from cc_show'); $ds->addTable('cc_show_days', 'select * from cc_show_days'); - $ds->addTable('cc_show_instances', 'select id, starts, ends, show_id, record, rebroadcast, instance_id, file_id, time_filled, last_scheduled, modified_instance from cc_show_instances'); + $ds->addTable('cc_show_instances', 'select id, starts, ends, show_id, record, rebroadcast, instance_id, file_id, time_filled, last_scheduled, modified_instance from cc_show_instances order by id'); $ds->addTable('cc_show_rebroadcast', 'select * from cc_show_rebroadcast'); $ds->addTable('cc_show_hosts', 'select * from cc_show_hosts');