Add Paddle sync log channel

This commit is contained in:
Codex Agent
2026-01-02 22:02:36 +01:00
parent 0430f0b1cc
commit bb67d68eba
7 changed files with 51 additions and 9 deletions

View 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'] ?? '')));
}
}