Remove deprecated patch

This commit is contained in:
Romain Neutron
2013-07-09 18:33:29 +02:00
parent d9b72e662b
commit 14da7484b0
2 changed files with 0 additions and 86 deletions

View File

@@ -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;
}
}

View File

@@ -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));
}
}