test editing.
This commit is contained in:
parent
f1f8badd16
commit
5352d7d4ef
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue