27 lines
791 B
PHP
27 lines
791 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class LemonSqueezySyncLoggingConfigTest extends TestCase
|
|
{
|
|
public function test_lemonsqueezy_sync_channel_is_configured(): void
|
|
{
|
|
$channel = config('logging.channels.lemonsqueezy-sync');
|
|
|
|
$this->assertIsArray($channel);
|
|
$this->assertSame('stack', $channel['driver'] ?? null);
|
|
$this->assertNotEmpty($channel['channels'] ?? null);
|
|
}
|
|
|
|
public function test_lemonsqueezy_sync_file_channel_is_configured(): void
|
|
{
|
|
$channel = config('logging.channels.lemonsqueezy-sync-file');
|
|
|
|
$this->assertIsArray($channel);
|
|
$this->assertSame('daily', $channel['driver'] ?? null);
|
|
$this->assertSame('lemonsqueezy-sync.log', basename((string) ($channel['path'] ?? '')));
|
|
}
|
|
}
|