From c36886d3f3c7b752a490a2eaa623b47c6f50a34e Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 16 Apr 2017 14:47:35 +0200 Subject: [PATCH] added deprecated tags --- core/Callbacks/Models/BaseCallback.php | 1 + core/Callbacks/Models/RecordCallback.php | 1 + phpunittests/core/Update/UpdateManagerTest.php | 16 ++++++++-------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/core/Callbacks/Models/BaseCallback.php b/core/Callbacks/Models/BaseCallback.php index d5ca4b94..a40f9af2 100644 --- a/core/Callbacks/Models/BaseCallback.php +++ b/core/Callbacks/Models/BaseCallback.php @@ -7,6 +7,7 @@ use ManiaControl\Players\Player; /** * Base Model Class for Callbacks * + * @deprecated * @author ManiaControl Team * @copyright 2014-2017 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 diff --git a/core/Callbacks/Models/RecordCallback.php b/core/Callbacks/Models/RecordCallback.php index 4c5815fa..9cad7bd3 100644 --- a/core/Callbacks/Models/RecordCallback.php +++ b/core/Callbacks/Models/RecordCallback.php @@ -5,6 +5,7 @@ namespace ManiaControl\Callbacks\Models; /** * Base Model Class for Callbacks * + * @deprecated * @author ManiaControl Team * @copyright 2014-2017 ManiaControl Team * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 diff --git a/phpunittests/core/Update/UpdateManagerTest.php b/phpunittests/core/Update/UpdateManagerTest.php index b9561533..55da7a72 100644 --- a/phpunittests/core/Update/UpdateManagerTest.php +++ b/phpunittests/core/Update/UpdateManagerTest.php @@ -115,14 +115,6 @@ final class UpdateManagerTest extends \PHPUnit_Framework_TestCase { $maniaControl->run(5); - //Check if Tempfolder got Deleted - $tempFolder = MANIACONTROL_PATH . 'temp' . DIRECTORY_SEPARATOR; - $this->assertFileNotExists($tempFolder); - - //Check if UpdateFileName got Deleted - $updateFileName = $tempFolder . basename($updateData->url); - $this->assertFileNotExists($updateFileName); - //Check Backup $backupFolder = MANIACONTROL_PATH . 'backup' . DIRECTORY_SEPARATOR; $backupFileName = $backupFolder . 'backup_' . ManiaControl::VERSION . '_' . date('y-m-d_H-i') . '.zip'; @@ -131,6 +123,14 @@ final class UpdateManagerTest extends \PHPUnit_Framework_TestCase { //Remove Backup Again unlink($backupFileName); + //Check if Tempfolder got Deleted + $tempFolder = MANIACONTROL_PATH . 'temp' . DIRECTORY_SEPARATOR; + $this->assertFileNotExists($tempFolder); + + //Check if UpdateFileName got Deleted + $updateFileName = $tempFolder . basename($updateData->url); + $this->assertFileNotExists($updateFileName); + $fileName = $this->getBuildDateFileName(); $this->assertStringEqualsFile($fileName, $updateData->releaseDate); $this->assertEquals($updateData->releaseDate, $updateManager->getBuildDate());