From daaff1e68a1d71c70746519ce4bc340f9523f027 Mon Sep 17 00:00:00 2001 From: drigato Date: Thu, 21 Aug 2014 17:56:00 -0400 Subject: [PATCH] Removed database test that confirms the is_linkable is set to false after a show is un-linked. Since we removed this behaviour from Airtime, and a show can be linked and unlinked as many times as the user wants, this test is deprecated. --- .../services/database/ShowServiceDbTest.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/airtime_mvc/tests/application/services/database/ShowServiceDbTest.php b/airtime_mvc/tests/application/services/database/ShowServiceDbTest.php index 8a7f54f1b..e8c03a57c 100644 --- a/airtime_mvc/tests/application/services/database/ShowServiceDbTest.php +++ b/airtime_mvc/tests/application/services/database/ShowServiceDbTest.php @@ -442,26 +442,6 @@ class ShowServiceDbTest extends Zend_Test_PHPUnit_DatabaseTestCase $this->createXmlDataSet(dirname(__FILE__)."/datasets/test_createLinkedShow.xml"), $ds ); - - /** Test unlinking a show **/ - $data["add_show_id"] = 1; - $data["add_show_linked"] = 0; - $showService = new Application_Service_ShowService(null, $data, true); - $showService->addUpdateShow($data); - - $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, 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'); - - $this->assertDataSetsEqual( - $this->createXmlDataSet(dirname(__FILE__)."/datasets/test_unlinkLinkedShow.xml"), - $ds - ); } /** Test the creation of a single record and rebroadcast(RR) show **/