added deprecated tags

This commit is contained in:
kremsy 2017-04-16 14:47:35 +02:00
parent 5e0a5c48a2
commit c36886d3f3
3 changed files with 10 additions and 8 deletions

View File

@ -7,6 +7,7 @@ use ManiaControl\Players\Player;
/** /**
* Base Model Class for Callbacks * Base Model Class for Callbacks
* *
* @deprecated
* @author ManiaControl Team <mail@maniacontrol.com> * @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team * @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3

View File

@ -5,6 +5,7 @@ namespace ManiaControl\Callbacks\Models;
/** /**
* Base Model Class for Callbacks * Base Model Class for Callbacks
* *
* @deprecated
* @author ManiaControl Team <mail@maniacontrol.com> * @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team * @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3

View File

@ -115,14 +115,6 @@ final class UpdateManagerTest extends \PHPUnit_Framework_TestCase {
$maniaControl->run(5); $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 //Check Backup
$backupFolder = MANIACONTROL_PATH . 'backup' . DIRECTORY_SEPARATOR; $backupFolder = MANIACONTROL_PATH . 'backup' . DIRECTORY_SEPARATOR;
$backupFileName = $backupFolder . 'backup_' . ManiaControl::VERSION . '_' . date('y-m-d_H-i') . '.zip'; $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 //Remove Backup Again
unlink($backupFileName); 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(); $fileName = $this->getBuildDateFileName();
$this->assertStringEqualsFile($fileName, $updateData->releaseDate); $this->assertStringEqualsFile($fileName, $updateData->releaseDate);
$this->assertEquals($updateData->releaseDate, $updateManager->getBuildDate()); $this->assertEquals($updateData->releaseDate, $updateManager->getBuildDate());