Skip to content

Commit

Permalink
renamed BaseTest to BaseTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreAOE committed Mar 27, 2024
1 parent 4b08ba5 commit 2fe6452
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Tests/Unit/BaseTest.php → Tests/Unit/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @package Restler
* @subpackage Tests
*/
class BaseTest extends UnitTestCase
abstract class BaseTestCase extends UnitTestCase
{
/**
* call unaccessible method of an object (to test it)
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/Configuration/ExtensionConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
***************************************************************/

use Aoe\Restler\Configuration\ExtensionConfiguration;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;

/**
* @covers \Aoe\Restler\Configuration\ExtensionConfiguration
*/
class ExtensionConfigurationTest extends BaseTest
class ExtensionConfigurationTest extends BaseTestCase
{
/**
* @var ExtensionConfiguration
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/Controller/BeUserAuthenticationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

use Aoe\Restler\Controller\BeUserAuthenticationController;
use Aoe\Restler\System\TYPO3\Loader as TYPO3Loader;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;

/**
Expand All @@ -37,7 +37,7 @@
*
* @covers \Aoe\Restler\Controller\BeUserAuthenticationController
*/
class BeUserAuthenticationControllerTest extends BaseTest
class BeUserAuthenticationControllerTest extends BaseTestCase
{
/**
* @var BeUserAuthenticationController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
***************************************************************/

use Aoe\Restler\Controller\ExplorerAuthenticationController;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Luracast\Restler\Data\ApiMethodInfo;
use Luracast\Restler\Explorer\v2\Explorer;
use Luracast\Restler\Restler;
Expand All @@ -38,7 +38,7 @@
*
* @covers \Aoe\Restler\Controller\ExplorerAuthenticationController
*/
class ExplorerAuthenticationControllerTest extends BaseTest
class ExplorerAuthenticationControllerTest extends BaseTestCase
{
/**
* @var ApiMethodInfo
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/Controller/FeUserAuthenticationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

use Aoe\Restler\Controller\FeUserAuthenticationController;
use Aoe\Restler\System\TYPO3\Loader as TYPO3Loader;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Luracast\Restler\Data\ApiMethodInfo;
use Luracast\Restler\Restler;

Expand All @@ -38,7 +38,7 @@
*
* @covers \Aoe\Restler\Controller\FeUserAuthenticationController
*/
class FeUserAuthenticationControllerTest extends BaseTest
class FeUserAuthenticationControllerTest extends BaseTestCase
{
/**
* @var FeUserAuthenticationController
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/DispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Aoe\Restler\Configuration\ExtensionConfiguration;
use Aoe\Restler\System\Dispatcher;
use Aoe\Restler\System\Restler\Builder;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Luracast\Restler\Restler;
use PHPUnit\Framework\MockObject\MockObject;
use TYPO3\CMS\Core\Http\Uri;
Expand All @@ -41,7 +41,7 @@
*
* @covers \Aoe\Restler\System\Dispatcher
*/
class DispatcherTest extends BaseTest
class DispatcherTest extends BaseTestCase
{
/**
* @var Dispatcher
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/RestApi/RestApiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use Aoe\Restler\System\RestApi\RestApiRequestScope;
use Aoe\Restler\System\Restler\Builder as RestlerBuilder;
use Aoe\Restler\System\TYPO3\Cache as Typo3Cache;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Luracast\Restler\RestException;
use Luracast\Restler\Restler;

Expand All @@ -43,7 +43,7 @@
*
* @covers \Aoe\Restler\System\RestApi\RestApiClient
*/
class RestApiClientTest extends BaseTest
class RestApiClientTest extends BaseTestCase
{
/**
* @var ExtensionConfiguration
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/RestApi/RestApiRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Aoe\Restler\System\RestApi\RestApiRequest;
use Aoe\Restler\System\RestApi\RestApiRequestScope;
use Aoe\Restler\System\TYPO3\Cache as Typo3Cache;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Exception;
use Luracast\Restler\RestException;
use Luracast\Restler\Restler;
Expand All @@ -40,7 +40,7 @@
*
* @covers \Aoe\Restler\System\RestApi\RestApiRequest
*/
class RestApiRequestTest extends BaseTest
class RestApiRequestTest extends BaseTestCase
{
/**
* @var array
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/Restler/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Aoe\Restler\System\Restler\Builder;
use Aoe\Restler\System\Restler\RestlerExtended;
use Aoe\Restler\System\TYPO3\Cache;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Aoe\Restler\Tests\Unit\System\Restler\Fixtures\ValidConfiguration;
use InvalidArgumentException;
use Luracast\Restler\Defaults;
Expand All @@ -49,7 +49,7 @@
*
* @covers \Aoe\Restler\System\Restler\Builder
*/
class BuilderTest extends BaseTest
class BuilderTest extends BaseTestCase
{
/**
* @var Builder
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/Restler/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Aoe\Restler\Controller\ExplorerAuthenticationController;
use Aoe\Restler\Controller\FeUserAuthenticationController;
use Aoe\Restler\System\Restler\Configuration;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Luracast\Restler\Explorer\v2\Explorer;
use Luracast\Restler\Restler;

Expand All @@ -41,7 +41,7 @@
*
* @covers \Aoe\Restler\System\Restler\Configuration
*/
class ConfigurationTest extends BaseTest
class ConfigurationTest extends BaseTestCase
{
/**
* @var ExtensionConfiguration
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/Restler/ExceptionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use Aoe\Restler\Tests\Unit\System\Restler\Fixtures\ExceptionHandler;
use Luracast\Restler\RestException;
use Luracast\Restler\Restler;
Expand All @@ -37,7 +37,7 @@
*
* @covers \Aoe\Restler\System\Restler\AbstractExceptionHandler
*/
class ExceptionHandlerTest extends BaseTest
class ExceptionHandlerTest extends BaseTestCase
{
/**
* @dataProvider statusCodes
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/System/TYPO3/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
***************************************************************/

use Aoe\Restler\System\TYPO3\Cache;
use Aoe\Restler\Tests\Unit\BaseTest;
use Aoe\Restler\Tests\Unit\BaseTestCase;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;

Expand All @@ -37,7 +37,7 @@
*
* @covers \Aoe\Restler\System\TYPO3\Cache
*/
class CacheTest extends BaseTest
class CacheTest extends BaseTestCase
{
/**
* @var Cache
Expand Down

0 comments on commit 2fe6452

Please sign in to comment.