mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
PHP CS fix
This commit is contained in:
@@ -67,16 +67,9 @@ use Alchemy\Phrasea\Controller\Root\Session;
|
|||||||
use Alchemy\Phrasea\Controller\Setup as SetupController;
|
use Alchemy\Phrasea\Controller\Setup as SetupController;
|
||||||
use Alchemy\Phrasea\Controller\Thesaurus\Thesaurus;
|
use Alchemy\Phrasea\Controller\Thesaurus\Thesaurus;
|
||||||
use Alchemy\Phrasea\Controller\Thesaurus\Xmlhttp as ThesaurusXMLHttp;
|
use Alchemy\Phrasea\Controller\Thesaurus\Xmlhttp as ThesaurusXMLHttp;
|
||||||
use Alchemy\Phrasea\Controller\Utils\ConnectionTest;
|
|
||||||
use Alchemy\Phrasea\Controller\Utils\PathFileTest;
|
|
||||||
use Alchemy\Phrasea\Controller\User\Notifications;
|
use Alchemy\Phrasea\Controller\User\Notifications;
|
||||||
use Alchemy\Phrasea\Controller\User\Preferences;
|
use Alchemy\Phrasea\Controller\User\Preferences;
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\SessionManagerSubscriber;
|
|
||||||
use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
|
use Alchemy\Phrasea\Core\PhraseaExceptionHandler;
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\LogoutSubscriber;
|
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\PhraseaLocaleSubscriber;
|
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\MaintenanceSubscriber;
|
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\CookiesDisablerSubscriber;
|
|
||||||
use Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\Provider\BrowserServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\BrowserServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\Provider\BorderManagerServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\BorderManagerServiceProvider;
|
||||||
@@ -103,7 +96,6 @@ use Alchemy\Phrasea\Core\Provider\TemporaryFilesystemServiceProvider;
|
|||||||
use Alchemy\Phrasea\Core\Provider\TokensServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\TokensServiceProvider;
|
||||||
use Alchemy\Phrasea\Core\Provider\UnicodeServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\UnicodeServiceProvider;
|
||||||
use Alchemy\Phrasea\Exception\InvalidArgumentException;
|
use Alchemy\Phrasea\Exception\InvalidArgumentException;
|
||||||
use Alchemy\Phrasea\Exception\LogicException;
|
|
||||||
use Alchemy\Phrasea\Twig\JSUniqueID;
|
use Alchemy\Phrasea\Twig\JSUniqueID;
|
||||||
use Alchemy\Phrasea\Twig\Fit;
|
use Alchemy\Phrasea\Twig\Fit;
|
||||||
use Alchemy\Phrasea\Twig\Camelize;
|
use Alchemy\Phrasea\Twig\Camelize;
|
||||||
@@ -136,10 +128,8 @@ use XPDF\XPDFServiceProvider;
|
|||||||
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
use Symfony\Component\HttpKernel\KernelEvents;
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
|
||||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Symfony\Component\Routing\Generator\UrlGenerator;
|
use Symfony\Component\Routing\Generator\UrlGenerator;
|
||||||
use Symfony\Component\Form\FormFactory;
|
use Symfony\Component\Form\FormFactory;
|
||||||
use Symfony\Component\Form\FormTypeInterface;
|
use Symfony\Component\Form\FormTypeInterface;
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
namespace Alchemy\Phrasea\Authentication\Phrasea;
|
namespace Alchemy\Phrasea\Authentication\Phrasea;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Alchemy\Phrasea\Authentication\Phrasea\FailureManager;
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
class FailureHandledNativeAuthentication implements PasswordAuthenticationInterface
|
class FailureHandledNativeAuthentication implements PasswordAuthenticationInterface
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
namespace Alchemy\Phrasea\Border;
|
namespace Alchemy\Phrasea\Border;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core\Configuration\Configuration;
|
use Alchemy\Phrasea\Core\Configuration\Configuration;
|
||||||
use Alchemy\Phrasea\Media\MimeTypeGuesser as AlchemyMimeTypeGuesser;
|
|
||||||
use MediaVorus\Utils\AudioMimeTypeGuesser;
|
use MediaVorus\Utils\AudioMimeTypeGuesser;
|
||||||
use MediaVorus\Utils\PostScriptMimeTypeGuesser;
|
use MediaVorus\Utils\PostScriptMimeTypeGuesser;
|
||||||
use MediaVorus\Utils\RawImageMimeTypeGuesser;
|
use MediaVorus\Utils\RawImageMimeTypeGuesser;
|
||||||
|
@@ -11,13 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Cache;
|
namespace Alchemy\Phrasea\Cache;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Cache\ApcCache;
|
|
||||||
use Alchemy\Phrasea\Cache\ArrayCache;
|
|
||||||
use Alchemy\Phrasea\Cache\Cache;
|
|
||||||
use Alchemy\Phrasea\Cache\MemcacheCache;
|
|
||||||
use Alchemy\Phrasea\Cache\RedisCache;
|
|
||||||
use Alchemy\Phrasea\Cache\WinCacheCache;
|
|
||||||
use Alchemy\Phrasea\Cache\XcacheCache;
|
|
||||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||||
|
|
||||||
class Factory
|
class Factory
|
||||||
|
@@ -13,8 +13,6 @@ namespace Alchemy\Phrasea\Cache;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||||
use Alchemy\Phrasea\Core\Configuration\Compiler;
|
use Alchemy\Phrasea\Core\Configuration\Compiler;
|
||||||
use Alchemy\Phrasea\Cache\Cache;
|
|
||||||
use Alchemy\Phrasea\Cache\Factory;
|
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
|
||||||
class Manager
|
class Manager
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
|
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Alchemy\Phrasea\Core\Event\CollectionCreateEvent;
|
use Alchemy\Phrasea\Core\Event\CollectionCreateEvent;
|
||||||
use Alchemy\Phrasea\Core\PhraseaEvents;
|
use Alchemy\Phrasea\Core\PhraseaEvents;
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Alchemy\Phrasea\Border\File;
|
use Alchemy\Phrasea\Border\File;
|
||||||
use Alchemy\Phrasea\Border\Manager;
|
use Alchemy\Phrasea\Border\Manager;
|
||||||
use Entities\LazaretFile;
|
use Entities\LazaretFile;
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command;
|
namespace Alchemy\Phrasea\Command;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
|
||||||
use Alchemy\Phrasea\Command\Upgrade\Step31;
|
use Alchemy\Phrasea\Command\Upgrade\Step31;
|
||||||
use Alchemy\Phrasea\Command\Upgrade\Step35;
|
use Alchemy\Phrasea\Command\Upgrade\Step35;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
|
@@ -307,8 +307,6 @@ class Activity implements ControllerProviderInterface
|
|||||||
|
|
||||||
$activity->setConfig(false);
|
$activity->setConfig(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($request->request->get('printcsv') == 'on') {
|
if ($request->request->get('printcsv') == 'on') {
|
||||||
$activity->setHasLimit(false);
|
$activity->setHasLimit(false);
|
||||||
$activity->setPrettyString(false);
|
$activity->setPrettyString(false);
|
||||||
|
@@ -469,7 +469,6 @@ class Informations implements ControllerProviderInterface
|
|||||||
$reportArray = $info->buildTabGrpInfo(false, array(), $request->request->get('user'), $conf, false);
|
$reportArray = $info->buildTabGrpInfo(false, array(), $request->request->get('user'), $conf, false);
|
||||||
|
|
||||||
if ($request->request->get('printcsv') == 'on') {
|
if ($request->request->get('printcsv') == 'on') {
|
||||||
|
|
||||||
return $this->getCSVResponse($app, $info, 'info_user');
|
return $this->getCSVResponse($app, $info, 'info_user');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -18,7 +18,6 @@ use Silex\ControllerProviderInterface;
|
|||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
|
|
||||||
|
|
||||||
class Root implements ControllerProviderInterface
|
class Root implements ControllerProviderInterface
|
||||||
{
|
{
|
||||||
|
@@ -230,7 +230,6 @@ class Developers implements ControllerProviderInterface
|
|||||||
return $app->json(array('success' => !$error));
|
return $app->json(array('success' => !$error));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change application webhook
|
* Change application webhook
|
||||||
*
|
*
|
||||||
|
@@ -825,8 +825,7 @@ class Xmlhttp implements ControllerProviderInterface
|
|||||||
$lcoll = '';
|
$lcoll = '';
|
||||||
$collections = $app['authentication']->getUser()->ACL()
|
$collections = $app['authentication']->getUser()->ACL()
|
||||||
->get_granted_base(array(), array($sbid)); // array(), $sbid);
|
->get_granted_base(array(), array($sbid)); // array(), $sbid);
|
||||||
foreach($collections as $collection)
|
foreach ($collections as $collection) {
|
||||||
{
|
|
||||||
$lcoll .= ($lcoll?",":"") . $collection->get_coll_id();
|
$lcoll .= ($lcoll?",":"") . $collection->get_coll_id();
|
||||||
}
|
}
|
||||||
$site = $app['phraseanet.configuration']['main']['key'];
|
$site = $app['phraseanet.configuration']['main']['key'];
|
||||||
|
@@ -26,6 +26,7 @@ class CSVServiceProvider implements ServiceProviderInterface
|
|||||||
{
|
{
|
||||||
$app['csv.exporter.config'] = $app->share(function () {
|
$app['csv.exporter.config'] = $app->share(function () {
|
||||||
$config = new ExporterConfig();
|
$config = new ExporterConfig();
|
||||||
|
|
||||||
return $config
|
return $config
|
||||||
->setDelimiter(";")
|
->setDelimiter(";")
|
||||||
->setEnclosure('"')
|
->setEnclosure('"')
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Notification;
|
namespace Alchemy\Phrasea\Notification;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Notification\EmitterInterface;
|
|
||||||
use Alchemy\Phrasea\Notification\Mail\MailInterface;
|
use Alchemy\Phrasea\Notification\Mail\MailInterface;
|
||||||
use Alchemy\Phrasea\Exception\LogicException;
|
use Alchemy\Phrasea\Exception\LogicException;
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
|
@@ -12,8 +12,6 @@
|
|||||||
namespace Alchemy\Phrasea\SearchEngine;
|
namespace Alchemy\Phrasea\SearchEngine;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
|
|
||||||
use Alchemy\Phrasea\SearchEngine\SearchEngineResult;
|
|
||||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
|
||||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||||
|
|
||||||
class API_Webhook
|
class API_Webhook
|
||||||
|
@@ -397,8 +397,7 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
$note += ($node->getAttribute("w") == $term_noacc) ? 2 : 0;
|
$note += ($node->getAttribute("w") == $term_noacc) ? 2 : 0;
|
||||||
if($context_noacc != "")
|
if($context_noacc != "")
|
||||||
$note += ($node->getAttribute("k") == $context_noacc) ? 1 : 0;
|
$note += ($node->getAttribute("k") == $context_noacc) ? 1 : 0;
|
||||||
if($note > $bestnote)
|
if ($note > $bestnote) {
|
||||||
{
|
|
||||||
$bestnote = $note;
|
$bestnote = $note;
|
||||||
$bestnode = $node;
|
$bestnode = $node;
|
||||||
}
|
}
|
||||||
@@ -414,7 +413,6 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
$this->isThesaurusValue = false;
|
$this->isThesaurusValue = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -10,8 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\Finder\Finder;
|
|
||||||
use Symfony\Component\Filesystem\Filesystem;
|
|
||||||
|
|
||||||
class patch_384alpha3a implements patchInterface
|
class patch_384alpha3a implements patchInterface
|
||||||
{
|
{
|
||||||
|
@@ -10,8 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\Finder\Finder;
|
|
||||||
use Symfony\Component\Filesystem\Filesystem;
|
|
||||||
|
|
||||||
class patch_384alpha4a implements patchInterface
|
class patch_384alpha4a implements patchInterface
|
||||||
{
|
{
|
||||||
|
@@ -162,4 +162,3 @@ session:
|
|||||||
idle: 0
|
idle: 0
|
||||||
# 1 week
|
# 1 week
|
||||||
lifetime: 604800
|
lifetime: 604800
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Application;
|
|||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
class ApiJSONPApplication extends ApiAbstract
|
class ApiJSONPTest extends ApiAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected function evaluateResponseBadRequest(Response $response)
|
protected function evaluateResponseBadRequest(Response $response)
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Application;
|
namespace Alchemy\Tests\Phrasea\Application;
|
||||||
|
|
||||||
class ApiJsonApplication extends ApiAbstract
|
class ApiJsonTest extends ApiAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getParameters(array $parameters = array())
|
public function getParameters(array $parameters = array())
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Application;
|
namespace Alchemy\Tests\Phrasea\Application;
|
||||||
|
|
||||||
class ApiYamlApplication extends ApiAbstract
|
class ApiYamlTest extends ApiAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getParameters(array $parameters = array())
|
public function getParameters(array $parameters = array())
|
||||||
|
@@ -9,7 +9,7 @@ use Alchemy\Phrasea\Authentication\Context;
|
|||||||
* Test oauthv2 flow based on ietf authv2 spec
|
* Test oauthv2 flow based on ietf authv2 spec
|
||||||
* @link http://tools.ietf.org/html/draft-ietf-oauth-v2-18
|
* @link http://tools.ietf.org/html/draft-ietf-oauth-v2-18
|
||||||
*/
|
*/
|
||||||
class oauthv2_application_test extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class OAuth2Test extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Application;
|
|||||||
use Alchemy\Phrasea\Border\File;
|
use Alchemy\Phrasea\Border\File;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
class ApplicationOverviewTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class OverviewTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
public function testDatafilesRouteAuthenticated()
|
public function testDatafilesRouteAuthenticated()
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Authentication\PersistentCookie;
|
namespace Alchemy\Phrasea\Authentication\PersistentCookie;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Authentication\PersistentCookie\Manager;
|
|
||||||
use Entities\Session;
|
use Entities\Session;
|
||||||
|
|
||||||
class ManagerTest extends \PHPUnit_Framework_TestCase
|
class ManagerTest extends \PHPUnit_Framework_TestCase
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Cache;
|
|||||||
|
|
||||||
use \Alchemy\Phrasea\Cache\RedisCache;
|
use \Alchemy\Phrasea\Cache\RedisCache;
|
||||||
|
|
||||||
class RedisTest extends \PhraseanetPHPUnitAbstract
|
class RedisCacheTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function testBasics()
|
public function testBasics()
|
||||||
|
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
namespace Alchemy\Phrasea\Command\Compile;
|
namespace Alchemy\Phrasea\Command\Compile;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Compile\Configuration;
|
|
||||||
|
|
||||||
class ConfigurationTest extends \PhraseanetPHPUnitAbstract
|
class ConfigurationTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
public function testExecute()
|
public function testExecute()
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
|||||||
use PHPExiftool\Driver\Tag\IPTC\ObjectName;
|
use PHPExiftool\Driver\Tag\IPTC\ObjectName;
|
||||||
use Alchemy\Phrasea\Vocabulary\Controller as VocabularyController;
|
use Alchemy\Phrasea\Vocabulary\Controller as VocabularyController;
|
||||||
|
|
||||||
class ControllerFieldsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class FieldsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
public function testRoot()
|
public function testRoot()
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
||||||
|
|
||||||
class Module_Admin_Route_PublicationTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class PublicationTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
public static $account = null;
|
public static $account = null;
|
||||||
public static $api = null;
|
public static $api = null;
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Media\Subdef\Image;
|
use Alchemy\Phrasea\Media\Subdef\Image;
|
||||||
|
|
||||||
class ControllerSubdefsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class SubdefsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
||||||
|
|
||||||
class ControllerUsersTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class UsersTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
protected $usersParameters;
|
protected $usersParameters;
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
|
|
||||||
class ControllerBasketTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class BasketTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
require_once __DIR__ . '/../../../../../classes/Bridge/Bridge_datas.inc';
|
require_once __DIR__ . '/../../../../../classes/Bridge/Bridge_datas.inc';
|
||||||
|
|
||||||
class BridgeApplication extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class BridgeTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
public static $account = null;
|
public static $account = null;
|
||||||
public static $api = null;
|
public static $api = null;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerEditTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class EditTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\CssSelector\CssSelector;
|
use Symfony\Component\CssSelector\CssSelector;
|
||||||
|
|
||||||
class ControllerFeedApp extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class FeedTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerLanguageTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class LanguageTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
|
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
|
||||||
use Alchemy\Phrasea\Core\Event\Subscriber\SessionManagerSubscriber;
|
|
||||||
use Symfony\Component\HttpKernel\Client;
|
use Symfony\Component\HttpKernel\Client;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerMoveCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class MoveCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerPrinterTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class PrinterTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerPushTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class PushTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
use Symfony\Component\HttpKernel\Client;
|
use Symfony\Component\HttpKernel\Client;
|
||||||
|
|
||||||
class ControllerStoryTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class StoryTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
public function testRootPost()
|
public function testRootPost()
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
class ControllerToolsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class ToolsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
protected $tmpFile;
|
protected $tmpFile;
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
|
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
|
||||||
|
|
||||||
class ControllerTooltipTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class TooltipTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerUsrListsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class UsrListsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
protected $client;
|
protected $client;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||||
|
|
||||||
class ControllerWorkZoneTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
class WorkZoneTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $client;
|
protected $client;
|
||||||
|
@@ -7,7 +7,7 @@ require_once __DIR__ . '/../../../../../classes/FeedValidator.inc';
|
|||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
class RssFeedTest extends \PhraseanetWebTestCaseAbstract
|
class RSSFeedTest extends \PhraseanetWebTestCaseAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider
|
* @covers Alchemy\Phrasea\Core\CLIProvider\ComposerSetupServiceProvider
|
||||||
*/
|
*/
|
||||||
class ComposerSetupServiceProvidertest extends ServiceProviderTestCase
|
class ComposerSetupServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\CLIProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\CLIProvider\LessBuilderServiceProvider
|
* @covers Alchemy\Phrasea\Core\CLIProvider\LessBuilderServiceProvider
|
||||||
*/
|
*/
|
||||||
class LessBuilderServiceProvidertest extends ServiceProviderTestCase
|
class LessBuilderServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -8,7 +8,7 @@ use Symfony\Component\Process\ExecutableFinder;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider
|
* @covers Alchemy\Phrasea\Core\CLIProvider\PluginServiceProvider
|
||||||
*/
|
*/
|
||||||
class PluginServiceProvidertest extends ServiceProviderTestCase
|
class PluginServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -200,7 +200,6 @@ class SessionManagerSubscriberTest extends \PhraseanetWebTestCaseAuthenticatedAb
|
|||||||
$app['EM'] = $this->getMockBuilder('Doctrine\ORM\EntityManager')->disableOriginalConstructor()->getMock();
|
$app['EM'] = $this->getMockBuilder('Doctrine\ORM\EntityManager')->disableOriginalConstructor()->getMock();
|
||||||
$app['EM']->expects($this->never())->method('flush');
|
$app['EM']->expects($this->never())->method('flush');
|
||||||
|
|
||||||
|
|
||||||
$app->get('/login', function () {
|
$app->get('/login', function () {
|
||||||
return '';
|
return '';
|
||||||
})->bind("homepage");
|
})->bind("homepage");
|
||||||
|
@@ -11,7 +11,7 @@ use Silex\Application;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\AuthenticationManagerServiceProvider
|
||||||
*/
|
*/
|
||||||
class AuthenticationManagerServiceProvidertest extends ServiceProviderTestCase
|
class AuthenticationManagerServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -11,7 +11,7 @@ use XPDF\XPDFServiceProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\BorderManagerServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\BorderManagerServiceProvider
|
||||||
*/
|
*/
|
||||||
class BorderManagerServiceProvidertest extends ServiceProviderTestCase
|
class BorderManagerServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\BrowserServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\BrowserServiceProvider
|
||||||
*/
|
*/
|
||||||
class BrowserServiceProvidertest extends ServiceProviderTestCase
|
class BrowserServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\CacheServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\CacheServiceProvider
|
||||||
*/
|
*/
|
||||||
class CacheServiceProvidertest extends ServiceProviderTestCase
|
class CacheServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -10,7 +10,7 @@ use Symfony\Component\HttpKernel\Client;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationServiceProvider
|
||||||
*/
|
*/
|
||||||
class ConfigurationServiceProvidertest extends ServiceProviderTestCase
|
class ConfigurationServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationTesterServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\ConfigurationTesterServiceProvider
|
||||||
*/
|
*/
|
||||||
class ConfigurationTesterServiceProvidertest extends ServiceProviderTestCase
|
class ConfigurationTesterServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Core\Provider\FtpServiceProvider;
|
use Alchemy\Phrasea\Core\Provider\FtpServiceProvider;
|
||||||
|
|
||||||
class FTPServiceProvidertest extends \PhraseanetPHPUnitAbstract
|
class FTPServiceProviderTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
public function testGetInstantiate()
|
public function testGetInstantiate()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\JMSServiceProviderServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\JMSServiceProviderServiceProvider
|
||||||
*/
|
*/
|
||||||
class JMSServiceProviderServiceProvidertest extends ServiceProviderTestCase
|
class JMSSerializerServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -8,7 +8,7 @@ use Alchemy\Phrasea\Core\Provider\LocaleServiceProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\LocaleServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\LocaleServiceProvider
|
||||||
*/
|
*/
|
||||||
class LocaleServiceProvidertest extends \PhraseanetPHPUnitAbstract
|
class LocaleServiceProviderTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
public function testLocalesAvailable()
|
public function testLocalesAvailable()
|
||||||
{
|
{
|
||||||
|
@@ -7,7 +7,7 @@ use Alchemy\Phrasea\Core\Provider\NotificationDelivererServiceProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\NotificationDelivererServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\NotificationDelivererServiceProvider
|
||||||
*/
|
*/
|
||||||
class NotificationDelivererServiceProvidertest extends ServiceProviderTestCase
|
class NotificationDelivererServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\ORMServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\ORMServiceProvider
|
||||||
*/
|
*/
|
||||||
class ORMServiceProvidertest extends ServiceProviderTestCase
|
class ORMServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\PhraseaVersionServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\PhraseaVersionServiceProvider
|
||||||
*/
|
*/
|
||||||
class PhraseaVersionServiceProvidertest extends ServiceProviderTestCase
|
class PhraseaVersionServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Alchemy\Tests\Phrasea\Core\Provider;
|
namespace Alchemy\Tests\Phrasea\Core\Provider;
|
||||||
|
|
||||||
class PhraseanetServiceProvidertest extends ServiceProviderTestCase
|
class PhraseanetServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -7,7 +7,7 @@ use Alchemy\Phrasea\Core\Provider\RegistrationServiceProvider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\RegistrationServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\RegistrationServiceProvider
|
||||||
*/
|
*/
|
||||||
class RegistrationServiceProvidertest extends \PhraseanetPHPUnitAbstract
|
class RegistrationServiceProviderTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
public function testSameInstanceShouldBereturnedEveryTime()
|
public function testSameInstanceShouldBereturnedEveryTime()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\SearchEngineServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\SearchEngineServiceProvider
|
||||||
*/
|
*/
|
||||||
class SearchEngineServiceProvidertest extends ServiceProviderTestCase
|
class SearchEngineServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\TaskManagerServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\TaskManagerServiceProvider
|
||||||
*/
|
*/
|
||||||
class TaskManagerServiceProvidertest extends ServiceProviderTestCase
|
class TaskManagerServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\TemporaryFilesystemServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\TemporaryFilesystemServiceProvider
|
||||||
*/
|
*/
|
||||||
class TemporaryFilesystemServiceProvidertest extends ServiceProviderTestCase
|
class TemporaryFilesystemServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\TokensServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\TokensServiceProvider
|
||||||
*/
|
*/
|
||||||
class TokensServiceProvidertest extends ServiceProviderTestCase
|
class TokensServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Core\Provider;
|
|||||||
/**
|
/**
|
||||||
* @covers Alchemy\Phrasea\Core\Provider\UnicodeServiceProvider
|
* @covers Alchemy\Phrasea\Core\Provider\UnicodeServiceProvider
|
||||||
*/
|
*/
|
||||||
class UnicodeServiceProvidertest extends ServiceProviderTestCase
|
class UnicodeServiceProviderTest extends ServiceProviderTestCase
|
||||||
{
|
{
|
||||||
public function provideServiceDescription()
|
public function provideServiceDescription()
|
||||||
{
|
{
|
||||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Http\XSendFile;
|
|||||||
use Alchemy\Phrasea\Http\XSendFile\NginxMode;
|
use Alchemy\Phrasea\Http\XSendFile\NginxMode;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
class XSendFileModeNginxTest extends \PhraseanetPHPUnitAbstract
|
class NginxModeTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
public function testGetVirtualHost()
|
public function testGetVirtualHost()
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Metadata\Tag;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Metadata\Tag\TfEditdate;
|
use Alchemy\Phrasea\Metadata\Tag\TfEditdate;
|
||||||
|
|
||||||
class TfEditdateTest extends \PHPUnit_Framework_TestCase
|
class TfEditDateTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Metadata\Tag;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Metadata\Tag\TfMimetype;
|
use Alchemy\Phrasea\Metadata\Tag\TfMimetype;
|
||||||
|
|
||||||
class TfMimetypeTest extends \PHPUnit_Framework_TestCase
|
class TfMimeTypeTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,7 +4,6 @@ namespace Alchemy\Tests\Phrasea\SearchEngine;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine;
|
use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine;
|
||||||
use Alchemy\Phrasea\SearchEngine\Phrasea\ConfigurationPanel;
|
use Alchemy\Phrasea\SearchEngine\Phrasea\ConfigurationPanel;
|
||||||
use Alchemy\Tests\Phrasea\SearchEngine\ConfigurationPanelAbstractTest;
|
|
||||||
|
|
||||||
class PhraseaConfigurationPanelTest extends ConfigurationPanelAbstractTest
|
class PhraseaConfigurationPanelTest extends ConfigurationPanelAbstractTest
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
namespace Alchemy\Tests\Phrasea\SearchEngine;
|
namespace Alchemy\Tests\Phrasea\SearchEngine;
|
||||||
|
|
||||||
use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine;
|
use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine;
|
||||||
use Alchemy\Tests\Phrasea\SearchEngine\SearchEngineAbstractTest;
|
|
||||||
use Symfony\Component\Process\Process;
|
use Symfony\Component\Process\Process;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,7 +4,6 @@ namespace Alchemy\Tests\Phrasea\SearchEngine;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine;
|
use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine;
|
||||||
use Alchemy\Phrasea\SearchEngine\SphinxSearch\ConfigurationPanel;
|
use Alchemy\Phrasea\SearchEngine\SphinxSearch\ConfigurationPanel;
|
||||||
use Alchemy\Tests\Phrasea\SearchEngine\ConfigurationPanelAbstractTest;
|
|
||||||
|
|
||||||
class SphinxSearchConfigurationPanelTest extends ConfigurationPanelAbstractTest
|
class SphinxSearchConfigurationPanelTest extends ConfigurationPanelAbstractTest
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,6 @@ namespace Alchemy\Tests\Phrasea\SearchEngine;
|
|||||||
|
|
||||||
use Alchemy\Phrasea\Application;
|
use Alchemy\Phrasea\Application;
|
||||||
use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine;
|
use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine;
|
||||||
use Alchemy\Tests\Phrasea\SearchEngine\SearchEngineAbstractTest;
|
|
||||||
use Symfony\Component\Process\ExecutableFinder;
|
use Symfony\Component\Process\ExecutableFinder;
|
||||||
use Symfony\Component\Process\Process;
|
use Symfony\Component\Process\Process;
|
||||||
|
|
||||||
|
@@ -8,7 +8,6 @@ use Silex\WebTestCase;
|
|||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpKernel\Client;
|
use Symfony\Component\HttpKernel\Client;
|
||||||
use Symfony\Component\DomCrawler\Crawler;
|
use Symfony\Component\DomCrawler\Crawler;
|
||||||
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface;
|
|
||||||
use Symfony\Component\Routing\RequestContext;
|
use Symfony\Component\Routing\RequestContext;
|
||||||
|
|
||||||
abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||||
|
Reference in New Issue
Block a user