Add configuration form types

This commit is contained in:
Romain Neutron
2013-11-18 15:07:13 +01:00
parent ff9fb0404d
commit af807431b1
42 changed files with 1711 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,29 @@
<?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\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
{
public function getForm()
{
return new EmailFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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\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();
}
}

View File

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,29 @@
<?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\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
{
public function getForm()
{
return new FtpExportFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,27 @@
<?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

@@ -0,0 +1,28 @@
<?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\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']);
}
}

View File

@@ -0,0 +1,27 @@
<?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\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
{
public function getForm()
{
return new MaintenanceFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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\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
{
public function getForm()
{
return new ModulesFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,27 @@
<?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\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\Tests\Phrasea\Form\FormTestCase;
class PushFormTypeTest extends FormTestCase
{
public function getForm()
{
return new PushFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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\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
{
public function getForm()
{
return new RegistrationFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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

@@ -0,0 +1,27 @@
<?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\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\Tests\Phrasea\Form\FormTestCase;
class RobotsFormTypeTest extends FormTestCase
{
public function getForm()
{
return new RobotsFormType();
}
}

View File

@@ -0,0 +1,29 @@
<?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\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
{
public function getForm()
{
return new SearchEngineFormType();
}
}

View File

@@ -0,0 +1,27 @@
<?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\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\Tests\Phrasea\Form\FormTestCase;
class StorageFormTypeTest extends FormTestCase
{
public function getForm()
{
return new StorageFormType();
}
}

View File

@@ -0,0 +1,27 @@
<?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\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();
}
}

View File

@@ -0,0 +1,29 @@
<?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']);
}
}