27 lines
755 B
PHP
27 lines
755 B
PHP
<?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'] ?? '')));
|
|
}
|
|
}
|