Commit 22e82b08 authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

hotline #75696 : fix RT

parent 9b28f787
Pipeline #4334 passed with stage
in 34 minutes and 45 seconds
......@@ -56,11 +56,6 @@ class Class_FileWriter {
return move_uploaded_file($source,$destination);
}
public function moveFile($source,$destination) {
return @rename($source,$destination);
}
}
?>
\ No newline at end of file
......@@ -3550,7 +3550,7 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
'tags' => 'selection',
'type_doc_id' => 201,
'created_at' => '06/10/2017',
'visible' => '1',
'visible' => false,
'status' => Class_Album::STATUS_VALIDATED,
'annee' => 1998,
'matiere' => '5;6',
......@@ -3565,7 +3565,7 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
}
/** @test */
function fileWithNoSizeShouldReturnError() {
public function fileWithNoSizeShouldReturnError() {
$_FILES['fichier'] = ['size' => 0,
'name' => '',
'tmp_name' => '',
......@@ -3583,7 +3583,7 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
}
/** @test */
function onlyPdfSendShouldWork() {
public function onlyPdfSendShouldWork() {
$_FILES['fichier'] = ['size' => 0,
'name' => '',
'tmp_name' => '',
......@@ -3602,8 +3602,8 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
}
/** @test */
function onlyPictureSendShouldWork() {
/** @test */
public function onlyPictureSendShouldWork() {
$_FILES['fichier'] = ['size' => 100,
'name' => 'mypic.jpg',
'tmp_name' => 'mypic.jpg',
......@@ -3621,8 +3621,8 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
}
/** @test */
function onlyPictureSendShouldWorkWhenAdd() {
/** @test */
public function onlyPictureSendShouldWorkWhenAdd() {
$_FILES['fichier'] = ['size' => 100,
'name' => 'mypic.jpg',
'tmp_name' => 'mypic.jpg',
......@@ -3636,5 +3636,4 @@ class Admin_AlbumControllerPostEditWithFilesAlbumMesBDTest extends Admin_AlbumCo
$this->postAddAlbum();
$this->assertEquals('45_mypic.jpg',Class_Album::find(45)->getFile());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment