Remove phraseanet registry

This commit is contained in:
Romain Neutron
2013-11-20 12:16:01 +01:00
parent c3df531f59
commit 64456a8964
178 changed files with 2228 additions and 3251 deletions

View File

@@ -11,17 +11,13 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\PushFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Phrasea\Form\Configuration\APIClientsFormType;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class PushFormTypeTest extends FormTestCase
class APIClientsFormTypeTest extends FormTestCase
{
public function getForm()
{
return new PushFormType();
return new APIClientsFormType();
}
}

View File

@@ -11,17 +11,13 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\RobotsFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Phrasea\Form\Configuration\ActionsFormType;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class RobotsFormTypeTest extends FormTestCase
class ActionsFormTypeTest extends FormTestCase
{
public function getForm()
{
return new RobotsFormType();
return new ActionsFormType();
}
}

View File

@@ -11,17 +11,13 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\StorageFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Phrasea\Form\Configuration\ClassicFormType;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class StorageFormTypeTest extends FormTestCase
class ClassicFormTypeTest extends FormTestCase
{
public function getForm()
{
return new StorageFormType();
return new ClassicFormType();
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\ClientFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class ClientFormTypeTest extends FormTestCase
{
public function getForm()
{
return new ClientFormType();
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\DailymotionFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class DailymotionFormTypeTest extends FormTestCase
{
public function getForm()
{
return new DailymotionFormType(self::$DI['app']['url_generator']);
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\DisplayFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class DisplayFormTypeTest extends FormTestCase
{
public function getForm()
{
return new DisplayFormType();
}
}

View File

@@ -12,12 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\EmailFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class EmailFormTypeTest extends FormTestCase

View File

@@ -12,18 +12,12 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\ExecutablesFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class ExecutablesFormTypeTest extends FormTestCase
{
public function getForm()
{
return new ExecutablesFormType();
return new ExecutablesFormType(self::$DI['app']['translator']);
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\FlickrFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class FlickrFormTypeTest extends FormTestCase
{
public function getForm()
{
return new FlickrFormType(self::$DI['app']['url_generator']);
}
}

View File

@@ -12,12 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\FtpExportFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class FtpExportFormTypeTest extends FormTestCase

View File

@@ -0,0 +1,23 @@
<?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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\GeneralFormType;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class GeneralFormTypeTest extends FormTestCase
{
public function getForm()
{
return new GeneralFormType(['fr' => 'french']);
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\HomepageFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class HomepageFormTypeTest extends FormTestCase
{
public function getForm()
{
return new HomepageFormType();
}
}

View File

@@ -1,27 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\HttpServerFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class HttpServerFormTypeTest extends FormTestCase
{
public function getForm()
{
return new HttpServerFormType(array('fr_FR' => 'french'));
}
}

View File

@@ -12,17 +12,12 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\MainConfigurationFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class MainConfigurationFormTypeTest extends FormTestCase
{
public function getForm()
{
return new MainConfigurationFormType(array('fr_FR' => 'french'), self::$DI['app']['url_generator']);
return new MainConfigurationFormType(self::$DI['app']['translator'], ['fr' => 'french']);
}
}

View File

@@ -12,10 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\MaintenanceFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class MaintenanceFormTypeTest extends FormTestCase

View File

@@ -12,12 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\ModulesFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class ModulesFormTypeTest extends FormTestCase

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\PhraseanetClientAPIFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class PhraseanetClientAPIFormTypeTest extends FormTestCase
{
public function getForm()
{
return new PhraseanetClientAPIFormType();
}
}

View File

@@ -12,12 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\RegistrationFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class RegistrationFormTypeTest extends FormTestCase

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\ReportFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class ReportFormTypeTest extends FormTestCase
{
public function getForm()
{
return new ReportFormType();
}
}

View File

@@ -12,12 +12,6 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\SearchEngineFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class SearchEngineFormTypeTest extends FormTestCase

View File

@@ -12,16 +12,12 @@
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\WebservicesFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class WebservicesFormTypeTest extends FormTestCase
{
public function getForm()
{
return new WebservicesFormType();
return new WebservicesFormType(self::$DI['app']['translator']);
}
}

View File

@@ -1,29 +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.
*/
namespace Alchemy\Tests\Phrasea\Form\Configuration;
use Alchemy\Phrasea\Form\Configuration\YoutubeFormType;
use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Validator\Constraints as Assert;
use Alchemy\Tests\Phrasea\Form\FormTestCase;
class YoutubeFormTypeTest extends FormTestCase
{
public function getForm()
{
return new YoutubeFormType(self::$DI['app']['url_generator']);
}
}

View File

@@ -51,7 +51,7 @@ class PhraseaRegisterFormTest extends FormTestCase
$form = new PhraseaRegisterForm(self::$DI['app'], $available, $params, new Camelizer());
$this->assertCount(self::$DI['app']['phraseanet.registry']->get('GV_autoselectDB') ? 7 : 8, self::$DI['app']->form($form)->createView()->vars['form']->children);
$this->assertCount(self::$DI['app']['conf']->get(['registry', 'registration', 'auto-select-collections']) ? 7 : 8, self::$DI['app']->form($form)->createView()->vars['form']->children);
}
public function testFormDoesNotRegisterNonValidFields()
@@ -75,6 +75,6 @@ class PhraseaRegisterFormTest extends FormTestCase
$form = new PhraseaRegisterForm(self::$DI['app'], $available, $params, new Camelizer());
$this->assertCount(self::$DI['app']['phraseanet.registry']->get('GV_autoselectDB') ? 6 : 7, self::$DI['app']->form($form)->createView()->vars['form']->children);
$this->assertCount(self::$DI['app']['conf']->get(['registry', 'registration', 'auto-select-collections']) ? 6 : 7, self::$DI['app']->form($form)->createView()->vars['form']->children);
}
}