Migrate billing from Paddle to Lemon Squeezy
This commit is contained in:
26
tests/Unit/LemonSqueezySyncLoggingConfigTest.php
Normal file
26
tests/Unit/LemonSqueezySyncLoggingConfigTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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'] ?? '')));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user