Skip to content

Commit

Permalink
v73.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gammamatrix committed Mar 23, 2024
1 parent e50e1e1 commit 3d681e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/Unit/ServiceProvider/InstanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

use Playground\ServiceProvider;
use Tests\Unit\Playground\TestCase;

// use TiMacDonald\Log\LogEntry;
// use TiMacDonald\Log\LogFake;
use TiMacDonald\Log\LogEntry;
use TiMacDonald\Log\LogFake;

/**
* \Tests\Unit\Playground\ServiceProvider\InstanceTest
Expand Down Expand Up @@ -70,7 +69,7 @@ public function test_userPrimaryKeyType_with_uuid_model(): void

public function test_userPrimaryKeyType_with_exception(): void
{
// $log = LogFake::bind();
$log = LogFake::bind();

$instance = (new \ReflectionClass(ServiceProvider::class))->newInstanceWithoutConstructor();

Expand All @@ -85,14 +84,15 @@ public function test_userPrimaryKeyType_with_exception(): void

// $log->dump();

// $log->assertLogged(
// fn (LogEntry $log) => $log->level === 'debug'
// );
// $log->assertLogged(
// fn (LogEntry $log) => str_contains(
// $log->message,
// 'Error: Call to undefined method Exception::getIncrementing()'
// )
// );
$log->assertLogged(
fn (LogEntry $log) => $log->level === 'debug'
);

$log->assertLogged(
fn (LogEntry $log) => is_string($log->message) && str_contains(
$log->message,
'Error: Call to undefined method Exception::getIncrementing()'
)
);
}
}

0 comments on commit 3d681e9

Please sign in to comment.