mirror of
https://github.com/flarum/core.git
synced 2025-08-02 06:30:53 +02:00
Change namespace of test classes
(as implemented by @luceos in his WIP PR)
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Tests\\": "tests/"
|
"Flarum\\Tests\\": "tests/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\FloodingExceptionHandler;
|
use Flarum\Api\ExceptionHandler\FloodingExceptionHandler;
|
||||||
use Flarum\Post\Exception\FloodingException;
|
use Flarum\Post\Exception\FloodingException;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class FloodingExceptionHandlerTest extends TestCase
|
class FloodingExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,15 +9,15 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
|
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Illuminate\Translation\ArrayLoader;
|
use Illuminate\Translation\ArrayLoader;
|
||||||
use Illuminate\Translation\Translator;
|
use Illuminate\Translation\Translator;
|
||||||
use Illuminate\Validation\Factory;
|
use Illuminate\Validation\Factory;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Validation\ValidationException;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class IlluminateValidationExceptionHandlerTest extends TestCase
|
class IlluminateValidationExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\Exception\InvalidAccessTokenException;
|
use Flarum\Api\Exception\InvalidAccessTokenException;
|
||||||
use Flarum\Api\ExceptionHandler\InvalidAccessTokenExceptionHandler;
|
use Flarum\Api\ExceptionHandler\InvalidAccessTokenExceptionHandler;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class InvalidAccessTokenExceptionHandlerTest extends TestCase
|
class InvalidAccessTokenExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\InvalidConfirmationTokenExceptionHandler;
|
use Flarum\Api\ExceptionHandler\InvalidConfirmationTokenExceptionHandler;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Flarum\User\Exception\InvalidConfirmationTokenException;
|
use Flarum\User\Exception\InvalidConfirmationTokenException;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class InvalidConfirmationTokenExceptionHandlerTest extends TestCase
|
class InvalidConfirmationTokenExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\MethodNotAllowedExceptionHandler;
|
use Flarum\Api\ExceptionHandler\MethodNotAllowedExceptionHandler;
|
||||||
use Flarum\Http\Exception\MethodNotAllowedException;
|
use Flarum\Http\Exception\MethodNotAllowedException;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class MethodNotAllowedExceptionHandlerTest extends TestCase
|
class MethodNotAllowedExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\ModelNotFoundExceptionHandler;
|
use Flarum\Api\ExceptionHandler\ModelNotFoundExceptionHandler;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class ModelNotFoundExceptionHandlerTest extends TestCase
|
class ModelNotFoundExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\PermissionDeniedExceptionHandler;
|
use Flarum\Api\ExceptionHandler\PermissionDeniedExceptionHandler;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Flarum\User\Exception\PermissionDeniedException;
|
use Flarum\User\Exception\PermissionDeniedException;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class PermissionDeniedExceptionHandlerTest extends TestCase
|
class PermissionDeniedExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\RouteNotFoundExceptionHandler;
|
use Flarum\Api\ExceptionHandler\RouteNotFoundExceptionHandler;
|
||||||
use Flarum\Http\Exception\RouteNotFoundException;
|
use Flarum\Http\Exception\RouteNotFoundException;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class RouteNotFoundExceptionHandlerTest extends TestCase
|
class RouteNotFoundExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\TokenMismatchExceptionHandler;
|
use Flarum\Api\ExceptionHandler\TokenMismatchExceptionHandler;
|
||||||
use Flarum\Http\Exception\TokenMismatchException;
|
use Flarum\Http\Exception\TokenMismatchException;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class TokenMismatchExceptionHandlerTest extends TestCase
|
class TokenMismatchExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Api\ExceptionHandler;
|
namespace Flarum\Tests\Api\ExceptionHandler;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Flarum\Api\ExceptionHandler\ValidationExceptionHandler;
|
use Flarum\Api\ExceptionHandler\ValidationExceptionHandler;
|
||||||
use Flarum\Foundation\ValidationException;
|
use Flarum\Foundation\ValidationException;
|
||||||
use Tests\Test\TestCase;
|
use Flarum\Tests\Test\TestCase;
|
||||||
|
|
||||||
class ValidationExceptionHandlerTest extends TestCase
|
class ValidationExceptionHandlerTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Settings;
|
namespace Flarum\Tests\Settings;
|
||||||
|
|
||||||
use Flarum\Settings\DatabaseSettingsRepository;
|
use Flarum\Settings\DatabaseSettingsRepository;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Illuminate\Database\ConnectionInterface;
|
use Illuminate\Database\ConnectionInterface;
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class DatabaseSettingsRepositoryTest extends TestCase
|
class DatabaseSettingsRepositoryTest extends TestCase
|
||||||
{
|
{
|
@@ -9,12 +9,12 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Flarum\Settings;
|
namespace Flarum\Tests\Flarum\Settings;
|
||||||
|
|
||||||
use Flarum\Settings\MemoryCacheSettingsRepository;
|
use Flarum\Settings\MemoryCacheSettingsRepository;
|
||||||
use Flarum\Settings\SettingsRepositoryInterface;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
|
use Flarum\Tests\Test\TestCase;
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
use Tests\Test\TestCase;
|
|
||||||
|
|
||||||
class MemoryCacheSettingsRepositoryTest extends TestCase
|
class MemoryCacheSettingsRepositoryTest extends TestCase
|
||||||
{
|
{
|
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Tests\Test;
|
namespace Flarum\Tests\Test;
|
||||||
|
|
||||||
use Mockery;
|
use Mockery;
|
||||||
use PHPUnit\Framework\TestCase as Test;
|
use PHPUnit\Framework\TestCase as Test;
|
||||||
|
Reference in New Issue
Block a user