From af43b227296ab9fa3bac092c0e5e1c8c68dfd71a Mon Sep 17 00:00:00 2001 From: Trent Schmidt Date: Tue, 19 Mar 2019 12:30:50 -0500 Subject: [PATCH] Style fixes --- config/db-logging.php | 6 ++---- tests/LogTests.php | 5 +---- tests/TestCase.php | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/config/db-logging.php b/config/db-logging.php index 061e577..1635a07 100644 --- a/config/db-logging.php +++ b/config/db-logging.php @@ -1,11 +1,9 @@ env('DB_LOG_TABLE', 'laravel_logs'), 'connection' => env('DB_LOG_CONNECTION', env('DB_CONNECTION', 'mysql')), - 'exception_level' => env('DB_LOG_EXCEPTION_LOG_LEVEL','alert'), - 'max_record_length' => env('DB_LOG_MAX_RECORD_LENGTH',65500), + 'exception_level' => env('DB_LOG_EXCEPTION_LOG_LEVEL', 'alert'), + 'max_record_length' => env('DB_LOG_MAX_RECORD_LENGTH', 65500), 'log_name' => env('APP_LOG_NAME', 'unknown') - ]; \ No newline at end of file diff --git a/tests/LogTests.php b/tests/LogTests.php index ca83d3f..732cb0f 100644 --- a/tests/LogTests.php +++ b/tests/LogTests.php @@ -7,7 +7,7 @@ use Monolog\Logger; use Montross50\DatabaseLogger\Monolog\Handler\DatabaseHandler; -class ManagerTests extends TestCase +class LogTests extends TestCase { /** @test */ @@ -32,7 +32,6 @@ public function logger_returns_database_handler() /** @test */ public function logger_logs() { - Log::alert('test1'); $ctx = ['data'=>'foo']; Log::critical('test2', $ctx); @@ -47,7 +46,6 @@ public function logger_logs() */ public function logger_fail_logs() { - $message = "test1"; $exception = "failed"; $connection = DB::connection('mysql'); @@ -97,7 +95,6 @@ public function logger_fail_logs() */ public function logger_fail_on_connection_not_established() { - $message = "test1"; $exception = "failed"; $query = \Mockery::mock(Builder::class)->makePartial(); diff --git a/tests/TestCase.php b/tests/TestCase.php index 7d3b122..30cbefb 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,7 +3,6 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase { - protected function getPackageProviders($app) { return [MonologDatabaseHandlerServiceProvider::class];