diff options
| author | dev | 2026-06-27 05:34:00 +0200 |
|---|---|---|
| committer | dev | 2026-06-27 05:34:00 +0200 |
| commit | b608ced142cd0527906b554e04376292f718f084 (patch) | |
| tree | 6f6937b35b902db3f0bca6476000dd61e3fcc85d /ssh/tests | |
| parent | 0fe83c7f76b2fd6ce79541a71cdde5ec0b12becf (diff) | |
| parent | 043dd3ed90cac67975996bd881a997f38679bacd (diff) | |
| download | curious-b608ced142cd0527906b554e04376292f718f084.tar.gz | |
Merged cinema into mostdiscussed.com
Diffstat (limited to 'ssh/tests')
| -rw-r--r-- | ssh/tests/CreatesApplication.php | 22 | ||||
| -rw-r--r-- | ssh/tests/Feature/ExampleTest.php | 21 | ||||
| -rw-r--r-- | ssh/tests/TestCase.php | 10 | ||||
| -rw-r--r-- | ssh/tests/Unit/ExampleTest.php | 18 |
4 files changed, 71 insertions, 0 deletions
diff --git a/ssh/tests/CreatesApplication.php b/ssh/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/ssh/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +<?php + +namespace Tests; + +use Illuminate\Contracts\Console\Kernel; + +trait CreatesApplication +{ + /** + * Creates the application. + * + * @return \Illuminate\Foundation\Application + */ + public function createApplication() + { + $app = require __DIR__.'/../bootstrap/app.php'; + + $app->make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/ssh/tests/Feature/ExampleTest.php b/ssh/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..cdb5111 --- /dev/null +++ b/ssh/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +<?php + +namespace Tests\Feature; + +use Illuminate\Foundation\Testing\RefreshDatabase; +use Tests\TestCase; + +class ExampleTest extends TestCase +{ + /** + * A basic test example. + * + * @return void + */ + public function testBasicTest() + { + $response = $this->get('/'); + + $response->assertStatus(200); + } +} diff --git a/ssh/tests/TestCase.php b/ssh/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/ssh/tests/TestCase.php @@ -0,0 +1,10 @@ +<?php + +namespace Tests; + +use Illuminate\Foundation\Testing\TestCase as BaseTestCase; + +abstract class TestCase extends BaseTestCase +{ + use CreatesApplication; +} diff --git a/ssh/tests/Unit/ExampleTest.php b/ssh/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..358cfc8 --- /dev/null +++ b/ssh/tests/Unit/ExampleTest.php @@ -0,0 +1,18 @@ +<?php + +namespace Tests\Unit; + +use PHPUnit\Framework\TestCase; + +class ExampleTest extends TestCase +{ + /** + * A basic test example. + * + * @return void + */ + public function testBasicTest() + { + $this->assertTrue(true); + } +} |
