test editing.

This commit is contained in:
naomiaro 2010-11-15 10:52:45 -05:00
parent f1f8badd16
commit 5352d7d4ef
2 changed files with 4 additions and 7 deletions

View File

@ -364,9 +364,6 @@ class Playlist {
{
$values = array("filename" => $fname);
$pl_id = Playlist::Insert($values);
if (PEAR::isError($pl_id)) {
return $pl_id;
}
$this->id = $pl_id;
return $this->id;
}

View File

@ -11,8 +11,8 @@ class SchedulerTests extends PHPUnit_TestCase {
global $CC_CONFIG, $CC_DBC;
// Clear the files table
$sql = "DELETE FROM ".$CC_CONFIG["filesTable"];
$CC_DBC->query($sql);
//$sql = "DELETE FROM ".$CC_CONFIG["filesTable"];
//$CC_DBC->query($sql);
// Add a file
$values = array("filepath" => dirname(__FILE__)."/test10001.mp3");
@ -23,8 +23,8 @@ class SchedulerTests extends PHPUnit_TestCase {
$this->storedFile2 = StoredFile::Insert($values, false);
// Clear the schedule table
$sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"];
$CC_DBC->query($sql);
//$sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"];
//$CC_DBC->query($sql);
}
function testDateToId() {