Skip to content

Commit

Permalink
chore : update to lumen version 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaidilp committed Aug 1, 2021
1 parent dc1cfd7 commit 160c244
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
\Illuminate\Cache\Console\ClearCommand::class
//
];

/**
Expand All @@ -24,6 +24,6 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('cache:clear')->weekly();
//
}
}
9 changes: 2 additions & 7 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,17 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
colors="true"
>
<testsuites>
<testsuite name="Application Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<!-- <env name="DB_CONNECTION" value="mysql"/> -->
</php>
</phpunit>
21 changes: 21 additions & 0 deletions tests/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

use Laravel\Lumen\Testing\DatabaseMigrations;
use Laravel\Lumen\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testExample()
{
$this->get('/');

$this->assertEquals(
$this->app->version(), $this->response->getContent()
);
}
}
4 changes: 1 addition & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

use Laravel\Lumen\Testing\TestCase as BaseTestCase;

require './vendor/autoload.php';

abstract class TestCase extends BaseTestCase
{
/**
Expand All @@ -13,6 +11,6 @@ abstract class TestCase extends BaseTestCase
*/
public function createApplication()
{
return require __DIR__ . '/../bootstrap/app.php';
return require __DIR__.'/../bootstrap/app.php';
}
}

0 comments on commit 160c244

Please sign in to comment.