mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Remove deprecated patch
This commit is contained in:
@@ -1,61 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of Phraseanet
|
|
||||||
*
|
|
||||||
* (c) 2005-2013 Alchemy
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
|
||||||
|
|
||||||
class patch_3804 implements patchInterface
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $release = '3.8.0.a3';
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @var Array
|
|
||||||
*/
|
|
||||||
private $concern = array(base::APPLICATION_BOX);
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function get_release()
|
|
||||||
{
|
|
||||||
return $this->release;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function require_all_upgrades()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @return Array
|
|
||||||
*/
|
|
||||||
public function concern()
|
|
||||||
{
|
|
||||||
return $this->concern;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param base $appbox
|
|
||||||
* @param Application $app
|
|
||||||
*/
|
|
||||||
public function apply(base $appbox, Application $app)
|
|
||||||
{
|
|
||||||
$app['phraseanet.configuration']->setDefault('main', 'task-manager');
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class patch_3804Test extends PhraseanetPHPUnitAbstract
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @covers patch_3804::apply
|
|
||||||
*/
|
|
||||||
public function testApply()
|
|
||||||
{
|
|
||||||
$app = self::$DI['app'];
|
|
||||||
|
|
||||||
$patch = new patch_3804();
|
|
||||||
|
|
||||||
$appbox = $this->getMockBuilder('appbox')
|
|
||||||
->disableOriginalConstructor()
|
|
||||||
->getMock();
|
|
||||||
|
|
||||||
$app['phraseanet.configuration'] = $this->getMock('Alchemy\Phrasea\Core\Configuration\ConfigurationInterface');
|
|
||||||
$app['phraseanet.configuration']->expects($this->once())
|
|
||||||
->method('setDefault')
|
|
||||||
->with('main', 'task-manager');
|
|
||||||
|
|
||||||
$this->assertTrue($patch->apply($appbox, $app));
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user