porting to laravel-zero

This commit is contained in:
Jeremias Wolff
2020-12-30 19:25:39 +01:00
parent 59e0d462c8
commit 34ecef7c80
92 changed files with 1999 additions and 4619 deletions
-21
View File
@@ -1,21 +0,0 @@
<?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);
}
}
+7
View File
@@ -0,0 +1,7 @@
<?php
test('inspiring command', function () {
$this->artisan('inspiring')
->expectsOutput('Simplicity is the ultimate sophistication.')
->assertExitCode(0);
});
+3
View File
@@ -0,0 +1,3 @@
<?php
uses(Tests\TestCase::class)->in('Feature');
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use LaravelZero\Framework\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
+3 -16
View File
@@ -1,18 +1,5 @@
<?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->assertTrue(true);
}
}
test('example', function () {
expect(true)->toBeTrue();
});