Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trent Schmidt committed Mar 19, 2019
1 parent 0111e6b commit af43b22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions config/db-logging.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php

return [

'table' => 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')

];
5 changes: 1 addition & 4 deletions tests/LogTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Monolog\Logger;
use Montross50\DatabaseLogger\Monolog\Handler\DatabaseHandler;

class ManagerTests extends TestCase
class LogTests extends TestCase
{

/** @test */
Expand All @@ -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);
Expand All @@ -47,7 +46,6 @@ public function logger_logs()
*/
public function logger_fail_logs()
{

$message = "test1";
$exception = "failed";
$connection = DB::connection('mysql');
Expand Down Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

abstract class TestCase extends \Orchestra\Testbench\TestCase
{

protected function getPackageProviders($app)
{
return [MonologDatabaseHandlerServiceProvider::class];
Expand Down

0 comments on commit af43b22

Please sign in to comment.