CC-5651: Unit Test the Scheduler
This commit is contained in:
parent
8e8f59a83c
commit
8457a3403b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
* properly
|
||||||
*/
|
*/
|
||||||
public function testDeleteShowInstance()
|
public function testDeleteShowInstance()
|
||||||
|
@ -170,14 +170,14 @@ class ShowTest extends Zend_Test_PHPUnit_DatabaseTestCase
|
||||||
$data = ShowData::getWeeklyRepeatNoEndNoRRData();
|
$data = ShowData::getWeeklyRepeatNoEndNoRRData();
|
||||||
$service_show = new Application_Service_ShowService(null, $data);
|
$service_show = new Application_Service_ShowService(null, $data);
|
||||||
$service_show->addUpdateShow($data);
|
$service_show->addUpdateShow($data);
|
||||||
//$service_show->deleteShow(3, true);
|
$service_show->deleteShow(3, true);
|
||||||
|
|
||||||
$ds = new Zend_Test_PHPUnit_Db_DataSet_QueryDataSet(
|
$ds = new Zend_Test_PHPUnit_Db_DataSet_QueryDataSet(
|
||||||
$this->getConnection()
|
$this->getConnection()
|
||||||
);
|
);
|
||||||
$ds->addTable('cc_show', 'select * from cc_show');
|
$ds->addTable('cc_show', 'select * from cc_show');
|
||||||
$ds->addTable('cc_show_days', 'select * from cc_show_days');
|
$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_rebroadcast', 'select * from cc_show_rebroadcast');
|
||||||
$ds->addTable('cc_show_hosts', 'select * from cc_show_hosts');
|
$ds->addTable('cc_show_hosts', 'select * from cc_show_hosts');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue