Broke unit test for adding content to single show

This commit is contained in:
drigato 2014-03-05 14:50:35 -05:00
parent 426b75b635
commit bcda9ea5e6
2 changed files with 5 additions and 6 deletions

View file

@ -595,10 +595,9 @@ class Application_Model_Scheduler
->filterByDbStarts(gmdate("Y-m-d H:i:s"), Criteria::GREATER_THAN) ->filterByDbStarts(gmdate("Y-m-d H:i:s"), Criteria::GREATER_THAN)
->find(); ->find();
} else { } else {
$instance_sql = "SELECT * FROM cc_show_instances ". $instances = CcShowInstancesQuery::create()
"WHERE id = ".$schedule["instance"]; ->filterByDbId($schedule["instance"])
$instances = Application_Common_Database::prepareAndExecute( ->find();
$instance_sql);
} }
$excludePositions = array(); $excludePositions = array();

View file

@ -22,7 +22,7 @@ class ScheduleUnitTest extends Zend_Test_PHPUnit_ControllerTestCase //PHPUnit_Fr
} }
/*public function testIsFileScheduledInTheFuture() public function testIsFileScheduledInTheFuture()
{ {
TestHelper::loginUser(); TestHelper::loginUser();
$CC_CONFIG = Config::getConfig(); $CC_CONFIG = Config::getConfig();
@ -92,6 +92,6 @@ class ScheduleUnitTest extends Zend_Test_PHPUnit_ControllerTestCase //PHPUnit_Fr
//Test the function we actually want to test. :-) //Test the function we actually want to test. :-)
$this->assertEquals($scheduleModel->IsFileScheduledInTheFuture($fileId), true); $this->assertEquals($scheduleModel->IsFileScheduledInTheFuture($fileId), true);
}*/ }
} }