From 3d681e9e1a04a0f27e76670a25e56181029a5dd7 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Sat, 23 Mar 2024 16:27:19 -0700 Subject: [PATCH] v73.0.0 --- tests/Unit/ServiceProvider/InstanceTest.php | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/Unit/ServiceProvider/InstanceTest.php b/tests/Unit/ServiceProvider/InstanceTest.php index c314ebe..0643b79 100644 --- a/tests/Unit/ServiceProvider/InstanceTest.php +++ b/tests/Unit/ServiceProvider/InstanceTest.php @@ -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 @@ -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(); @@ -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()' + ) + ); } }