diff options
-rw-r--r-- | infrastructure/Testing/TestCase.php | 29 | ||||
-rw-r--r-- | infrastructure/Testing/bootstrap.php | 5 | ||||
-rw-r--r-- | phpunit.xml | 25 |
3 files changed, 0 insertions, 59 deletions
diff --git a/infrastructure/Testing/TestCase.php b/infrastructure/Testing/TestCase.php deleted file mode 100644 index 1770e1b..0000000 --- a/infrastructure/Testing/TestCase.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -namespace Infrastructure\Testing; - -use Illuminate\Foundation\Testing\TestCase as LaravelTestCase; - -class TestCase extends LaravelTestCase -{ - /** - * The base URL to use while testing the application. - * - * @var string - */ - protected $baseUrl = 'http://localhost'; - - /** - * Creates the application. - * - * @return \Illuminate\Foundation\Application - */ - public function createApplication() - { - $app = require __DIR__.'/../../bootstrap/app.php'; - - $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap(); - - return $app; - } -} diff --git a/infrastructure/Testing/bootstrap.php b/infrastructure/Testing/bootstrap.php deleted file mode 100644 index f0aea64..0000000 --- a/infrastructure/Testing/bootstrap.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php - -require_once __DIR__ . '/../../bootstrap/autoload.php'; - -// bootstrap testing, e.g. seeding database etc. diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index e7dcff0..0000000 --- a/phpunit.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<phpunit backupGlobals="false" - backupStaticAttributes="false" - bootstrap="infrastructure/Testing/bootstrap.php" - colors="true" - convertErrorsToExceptions="true" - convertNoticesToExceptions="true" - convertWarningsToExceptions="true" - processIsolation="false" - stopOnFailure="false"> - <testsuites> - <testsuite name="Api"> - <directory>./Api/</directory> - </testsuite> - <testsuite name="Infrastructure"> - <directory>./infrastructure/</directory> - </testsuite> - </testsuites> - <php> - <env name="APP_ENV" value="testing"/> - <env name="CACHE_DRIVER" value="array"/> - <env name="SESSION_DRIVER" value="array"/> - <env name="QUEUE_DRIVER" value="sync"/> - </php> -</phpunit> |