Fix unit test names

This commit is contained in:
Romain Neutron
2013-12-06 10:30:24 +01:00
parent a3b1ae7163
commit 66e762a1d1
69 changed files with 74 additions and 74 deletions

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Application;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class ApiRootTest extends \PhraseanetWebTestCaseAbstract class ApiRootTest extends \PhraseanetWebTestCase
{ {
/** /**
* *

View File

@@ -11,7 +11,7 @@ use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
abstract class ApiTestCase extends \PhraseanetWebTestCaseAbstract abstract class ApiTestCase extends \PhraseanetWebTestCase
{ {
/** /**
* *

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Application; namespace Alchemy\Tests\Phrasea\Application;
class LightboxTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class LightboxTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -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 oauthv2_application_test extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* *

View File

@@ -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 OverviewTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class OverviewTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testDatafilesRouteAuthenticated() public function testDatafilesRouteAuthenticated()
{ {

View File

@@ -14,7 +14,7 @@ use Alchemy\Phrasea\Border\Attribute\Metadata;
use Alchemy\Phrasea\Border\Attribute\Status; use Alchemy\Phrasea\Border\Attribute\Status;
use Alchemy\Phrasea\Border\Attribute\Story; use Alchemy\Phrasea\Border\Attribute\Story;
class ManagerTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ManagerTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* @var Manager * @var Manager

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Authentication\ACLProvider; use Alchemy\Phrasea\Authentication\ACLProvider;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
class AdminCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class AdminCollectionTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;
public static $createdCollections = []; public static $createdCollections = [];

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Admin; namespace Alchemy\Tests\Phrasea\Controller\Admin;
class AdminDashboardTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class AdminDashboardTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Alchemy\Phrasea\Controller\Admin\ConnectedUsers; use Alchemy\Phrasea\Controller\Admin\ConnectedUsers;
class ConnectedUserTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ConnectedUserTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DataboxTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class DataboxTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;
private static $createdCollections = []; private static $createdCollections = [];

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DataboxesTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class DataboxesTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -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 ControllerFieldsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testRoot() public function testRoot()
{ {

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Admin; namespace Alchemy\Tests\Phrasea\Controller\Admin;
class Module_Admin_Route_PublicationTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class Module_Admin_Route_PublicationTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public static $account = null; public static $account = null;
public static $api = null; public static $api = null;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Admin; namespace Alchemy\Tests\Phrasea\Controller\Admin;
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class RootTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine; use Alchemy\Phrasea\SearchEngine\Phrasea\PhraseaEngine;
use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine; use Alchemy\Phrasea\SearchEngine\SphinxSearch\SphinxSearchEngine;
class SearchEngineTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class SearchEngineTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
class SetupTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class SetupTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**

View File

@@ -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 ControllerSubdefsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Alchemy\Phrasea\Model\Entities\Task; use Alchemy\Phrasea\Model\Entities\Task;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class TaskManagerTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class TaskManagerTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testRouteTaskManagerRoot() public function testRouteTaskManagerRoot()
{ {

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Admin; namespace Alchemy\Tests\Phrasea\Controller\Admin;
class ControllerUsersTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerUsersTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;
protected $usersParameters; protected $usersParameters;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Client; namespace Alchemy\Tests\Phrasea\Controller\Client;
class BasketsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class BasketsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Client;
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions; use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class RootTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Model\Entities\Basket; use Alchemy\Phrasea\Model\Entities\Basket;
use Alchemy\Phrasea\Model\Entities\BasketElement; use Alchemy\Phrasea\Model\Entities\BasketElement;
class ControllerBasketTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerBasketTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -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 BridgeApplication extends \PhraseanetAuthenticatedWebTestCase
{ {
public static $account = null; public static $account = null;
public static $api = null; public static $api = null;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class DoDownloadTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class DoDownloadTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class DownloadTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class DownloadTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerEditTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerEditTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
/** /**
* @todo Test Alchemy\Phrasea\Controller\Prod\Export::exportMail * @todo Test Alchemy\Phrasea\Controller\Prod\Export::exportMail
*/ */
class ExportTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ExportTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;
private static $GV_activeFTP; private static $GV_activeFTP;

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Model\Entities\FeedItem; use Alchemy\Phrasea\Model\Entities\FeedItem;
use Symfony\Component\CssSelector\CssSelector; use Symfony\Component\CssSelector\CssSelector;
class FeedTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class FeedTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public static function setUpBeforeClass() public static function setUpBeforeClass()
{ {

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerLanguageTest extends \PhraseanetWebTestCaseAbstract class ControllerLanguageTest extends \PhraseanetWebTestCase
{ {
protected $client; protected $client;

View File

@@ -6,7 +6,7 @@ use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class LazaretTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class LazaretTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* *

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerMoveCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerMoveCollectionTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Model\Entities\Order; use Alchemy\Phrasea\Model\Entities\Order;
use Alchemy\Phrasea\Model\Entities\OrderElement; use Alchemy\Phrasea\Model\Entities\OrderElement;
class OrderTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class OrderTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* *

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerPrinterTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerPrinterTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
class PropertyTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class PropertyTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerPushTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerPushTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -6,7 +6,7 @@ namespace Alchemy\Phrasea\Controller\Prod;
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions; use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
class QueryTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class QueryTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**

View File

@@ -8,7 +8,7 @@ use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
/** /**
* @todo Test Alchemy\Phrasea\Controller\Prod\Export::exportMail * @todo Test Alchemy\Phrasea\Controller\Prod\Export::exportMail
*/ */
class RecordsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class RecordsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerRootTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Controller\Prod\Share; use Alchemy\Phrasea\Controller\Prod\Share;
class ShareTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ShareTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -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 ControllerStoryTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testRootPost() public function testRootPost()
{ {

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Prod;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
class TOUTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class TOUTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -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 ControllerToolsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;
protected $tmpFile; protected $tmpFile;

View File

@@ -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 ControllerTooltipTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -8,7 +8,7 @@ use DataURI;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class UploadTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class UploadTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* *

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerUsrListsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerUsrListsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Prod; namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerWorkZoneTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ControllerWorkZoneTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Report; namespace Alchemy\Tests\Phrasea\Controller\Report;
class ActivityTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ActivityTest extends \PhraseanetAuthenticatedWebTestCase
{ {
private $dmin; private $dmin;
private $dmax; private $dmax;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Report; namespace Alchemy\Tests\Phrasea\Controller\Report;
class ExportTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class ExportTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testExportCSV() public function testExportCSV()

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Report; namespace Alchemy\Tests\Phrasea\Controller\Report;
class InformationsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class InformationsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
private $dmin; private $dmin;
private $dmax; private $dmax;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Report; namespace Alchemy\Tests\Phrasea\Controller\Report;
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class RootTest extends \PhraseanetAuthenticatedWebTestCase
{ {
private $dmin; private $dmin;
private $dmax; private $dmax;

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Root;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class AccountTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class AccountTest extends \PhraseanetAuthenticatedWebTestCase
{ {
private static $authorizedApp; private static $authorizedApp;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Root;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DevelopersTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class DevelopersTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**

View File

@@ -13,7 +13,7 @@ use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class LoginTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class LoginTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public static $demands; public static $demands;
public static $collections; public static $collections;

View File

@@ -10,7 +10,7 @@ use Alchemy\Phrasea\Model\Entities\FeedEntry;
use Alchemy\Phrasea\Model\Entities\FeedItem; use Alchemy\Phrasea\Model\Entities\FeedItem;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
class RssFeedTest extends \PhraseanetWebTestCaseAbstract class RssFeedTest extends \PhraseanetWebTestCase
{ {
private static $initialized = false; private static $initialized = false;

View File

@@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\BrowserKit\Cookie as BrowserCookie; use Symfony\Component\BrowserKit\Cookie as BrowserCookie;
use Symfony\Component\BrowserKit\CookieJar; use Symfony\Component\BrowserKit\CookieJar;
class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class RootTest extends \PhraseanetAuthenticatedWebTestCase
{ {
public function testRouteSetLocale() public function testRouteSetLocale()
{ {

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Root;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
class SessionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class SessionTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* @covers \Alchemy\Phrasea\Controller\Root\Session::updateSession * @covers \Alchemy\Phrasea\Controller\Root\Session::updateSession

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller;
use Symfony\Component\Yaml\Yaml; use Symfony\Component\Yaml\Yaml;
class SetupTest extends \PhraseanetWebTestCaseAbstract class SetupTest extends \PhraseanetWebTestCase
{ {
public function setUp() public function setUp()
{ {

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\User; namespace Alchemy\Tests\Phrasea\Controller\User;
class NotificationsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class NotificationsTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\User; namespace Alchemy\Tests\Phrasea\Controller\User;
class PreferencesTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class PreferencesTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Utils; namespace Alchemy\Tests\Phrasea\Controller\Utils;
class ControllerConnectionTestTest extends \PhraseanetWebTestCaseAbstract class ControllerConnectionTestTest extends \PhraseanetWebTestCase
{ {
/** /**
* Default route test * Default route test

View File

@@ -2,7 +2,7 @@
namespace Alchemy\Tests\Phrasea\Controller\Utils; namespace Alchemy\Tests\Phrasea\Controller\Utils;
class ControllerPathFileTestTest extends \PhraseanetWebTestCaseAbstract class ControllerPathFileTestTest extends \PhraseanetWebTestCase
{ {
/** /**
* Default route test * Default route test

View File

@@ -7,7 +7,7 @@ use Alchemy\Phrasea\Http\XSendFile\NginxMode;
use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
class ServeFileResponseFactoryTest extends \PhraseanetWebTestCaseAbstract class ServeFileResponseFactoryTest extends \PhraseanetWebTestCase
{ {
protected $factory; protected $factory;

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Security;
use Alchemy\Phrasea\Security\Firewall; use Alchemy\Phrasea\Security\Firewall;
class FirewallTest extends \PhraseanetWebTestCaseAuthenticatedAbstract class FirewallTest extends \PhraseanetAuthenticatedWebTestCase
{ {
protected $client; protected $client;

View File

@@ -4,7 +4,7 @@ use Alchemy\Phrasea\Application;
require_once __DIR__ . '/../Bridge_datas.inc'; require_once __DIR__ . '/../Bridge_datas.inc';
class Bridge_Api_AbstractTest extends PhraseanetWebTestCaseAbstract class Bridge_Api_AbstractTest extends \PhraseanetWebTestCase
{ {
public static $account = null; public static $account = null;
public static $api = null; public static $api = null;

View File

@@ -4,7 +4,7 @@ use Silex\Application;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
use Symfony\Component\DomCrawler\Crawler; use Symfony\Component\DomCrawler\Crawler;
abstract class PhraseanetWebTestCaseAuthenticatedAbstract extends \PhraseanetAuthenticatedTestCase abstract class PhraseanetAuthenticatedWebTestCase extends \PhraseanetAuthenticatedTestCase
{ {
protected $StubbedACL; protected $StubbedACL;
private static $createdDataboxes = []; private static $createdDataboxes = [];

View File

@@ -0,0 +1,6 @@
<?php
abstract class PhraseanetWebTestCase extends \PhraseanetTestCase
{
}

View File

@@ -1,6 +0,0 @@
<?php
abstract class PhraseanetWebTestCaseAbstract extends \PhraseanetTestCase
{
}

View File

@@ -1,6 +1,6 @@
<?php <?php
class databoxTest extends PhraseanetWebTestCaseAuthenticatedAbstract class databoxTest extends \PhraseanetAuthenticatedWebTestCase
{ {
/** /**
* @covers databox::get_thesaurus * @covers databox::get_thesaurus

View File

@@ -8,9 +8,9 @@ class unitTestsTest extends \PhraseanetTestCase
$reserved = [ $reserved = [
"BoilerPlate.php", "BoilerPlate.php",
"PhraseanetTestCase.php", "PhraseanetTestCase.php",
"PhraseanetWebTestCaseAbstract.php", "PhraseanetWebTestCase.php",
"PhraseanetAuthenticatedTestCase.php", "PhraseanetAuthenticatedTestCase.php",
"PhraseanetWebTestCaseAuthenticatedAbstract.php", "PhraseanetAuthenticatedWebTestCase.php",
"PhraseanetPHPUnitListener.php", "PhraseanetPHPUnitListener.php",
]; ];