1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Change namespace of test classes

(as implemented by @luceos in his WIP PR)
This commit is contained in:
Franz Liedke
2018-03-04 00:01:49 +01:00
parent 2348b8f46f
commit b75f098de7
14 changed files with 26 additions and 26 deletions

View File

@@ -70,7 +70,7 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
"Flarum\\Tests\\": "tests/"
}
},
"extra": {

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\FloodingExceptionHandler;
use Flarum\Post\Exception\FloodingException;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class FloodingExceptionHandlerTest extends TestCase
{

View File

@@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
use Flarum\Tests\Test\TestCase;
use Illuminate\Translation\ArrayLoader;
use Illuminate\Translation\Translator;
use Illuminate\Validation\Factory;
use Illuminate\Validation\ValidationException;
use Tests\Test\TestCase;
class IlluminateValidationExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\Exception\InvalidAccessTokenException;
use Flarum\Api\ExceptionHandler\InvalidAccessTokenExceptionHandler;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class InvalidAccessTokenExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\InvalidConfirmationTokenExceptionHandler;
use Flarum\Tests\Test\TestCase;
use Flarum\User\Exception\InvalidConfirmationTokenException;
use Tests\Test\TestCase;
class InvalidConfirmationTokenExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\MethodNotAllowedExceptionHandler;
use Flarum\Http\Exception\MethodNotAllowedException;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class MethodNotAllowedExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\ModelNotFoundExceptionHandler;
use Flarum\Tests\Test\TestCase;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Tests\Test\TestCase;
class ModelNotFoundExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\PermissionDeniedExceptionHandler;
use Flarum\Tests\Test\TestCase;
use Flarum\User\Exception\PermissionDeniedException;
use Tests\Test\TestCase;
class PermissionDeniedExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\RouteNotFoundExceptionHandler;
use Flarum\Http\Exception\RouteNotFoundException;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class RouteNotFoundExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\TokenMismatchExceptionHandler;
use Flarum\Http\Exception\TokenMismatchException;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class TokenMismatchExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Api\ExceptionHandler;
namespace Flarum\Tests\Api\ExceptionHandler;
use Exception;
use Flarum\Api\ExceptionHandler\ValidationExceptionHandler;
use Flarum\Foundation\ValidationException;
use Tests\Test\TestCase;
use Flarum\Tests\Test\TestCase;
class ValidationExceptionHandlerTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Settings;
namespace Flarum\Tests\Settings;
use Flarum\Settings\DatabaseSettingsRepository;
use Flarum\Tests\Test\TestCase;
use Illuminate\Database\ConnectionInterface;
use Mockery as m;
use Tests\Test\TestCase;
class DatabaseSettingsRepositoryTest extends TestCase
{

View File

@@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/
namespace Tests\Flarum\Settings;
namespace Flarum\Tests\Flarum\Settings;
use Flarum\Settings\MemoryCacheSettingsRepository;
use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\Tests\Test\TestCase;
use Mockery as m;
use Tests\Test\TestCase;
class MemoryCacheSettingsRepositoryTest extends TestCase
{

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Tests\Test;
namespace Flarum\Tests\Test;
use Mockery;
use PHPUnit\Framework\TestCase as Test;