mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Remove phraseanet registry
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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']);
|
||||
}
|
||||
}
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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'));
|
||||
}
|
||||
}
|
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user