Add Paddle sync log channel
This commit is contained in:
26
tests/Unit/PaddleSyncLoggingConfigTest.php
Normal file
26
tests/Unit/PaddleSyncLoggingConfigTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class PaddleSyncLoggingConfigTest extends TestCase
|
||||
{
|
||||
public function test_paddle_sync_channel_is_configured(): void
|
||||
{
|
||||
$channel = config('logging.channels.paddle-sync');
|
||||
|
||||
$this->assertIsArray($channel);
|
||||
$this->assertSame('stack', $channel['driver'] ?? null);
|
||||
$this->assertNotEmpty($channel['channels'] ?? null);
|
||||
}
|
||||
|
||||
public function test_paddle_sync_file_channel_is_configured(): void
|
||||
{
|
||||
$channel = config('logging.channels.paddle-sync-file');
|
||||
|
||||
$this->assertIsArray($channel);
|
||||
$this->assertSame('daily', $channel['driver'] ?? null);
|
||||
$this->assertSame('paddle-sync.log', basename((string) ($channel['path'] ?? '')));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user