From 05819b5c92d1f2666e43082d56be7c95c4010c7e Mon Sep 17 00:00:00 2001 From: Brandon Ferens Date: Mon, 21 Oct 2024 10:59:29 -0700 Subject: [PATCH] Pest updates for v2 --- tests/Architecture/AssertableMessageTest.php | 4 ++-- tests/Architecture/AssertionsTest.php | 8 ++++---- tests/Architecture/PresetTest.php | 6 +++--- tests/Architecture/TraitTest.php | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/Architecture/AssertableMessageTest.php b/tests/Architecture/AssertableMessageTest.php index dd38904..7461339 100644 --- a/tests/Architecture/AssertableMessageTest.php +++ b/tests/Architecture/AssertableMessageTest.php @@ -5,10 +5,10 @@ use KirschbaumDevelopment\MailIntercept\WithMailInterceptor; use PHPUnit\Framework\Assert; -arch()->expect(AssertableMessage::class) +arch('AssertableMessage extends Assert')->expect(AssertableMessage::class) ->toExtend(Assert::class); -arch()->expect(AssertableMessage::class) +arch('AssertableMessage uses traits')->expect(AssertableMessage::class) ->toUseTraits([ ForwardsCalls::class, WithMailInterceptor::class, diff --git a/tests/Architecture/AssertionsTest.php b/tests/Architecture/AssertionsTest.php index 824873d..5f2d03f 100644 --- a/tests/Architecture/AssertionsTest.php +++ b/tests/Architecture/AssertionsTest.php @@ -1,14 +1,14 @@ expect('KirschbaumDevelopment\MailIntercept\Assertions') +arch('assertions are traits')->expect('KirschbaumDevelopment\MailIntercept\Assertions') ->toBeTraits(); -arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') +arch('assertions have correct suffix')->expect('KirschbaumDevelopment\MailIntercept\Assertions') ->traits() ->toHaveSuffix('Assertions'); -arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') +arch('assertions do not have private methods')->expect('KirschbaumDevelopment\MailIntercept\Assertions') ->not->toHavePrivateMethods(); -arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') +arch('assertions do not have protected methods')->expect('KirschbaumDevelopment\MailIntercept\Assertions') ->not->toHaveProtectedMethods(); diff --git a/tests/Architecture/PresetTest.php b/tests/Architecture/PresetTest.php index e49a393..29d1299 100644 --- a/tests/Architecture/PresetTest.php +++ b/tests/Architecture/PresetTest.php @@ -1,7 +1,7 @@ preset()->laravel(); +arch('laravel preset')->preset()->laravel(); -arch()->preset()->php(); +arch('php preset')->preset()->php(); -arch()->preset()->security(); +arch('security preset')->preset()->security(); diff --git a/tests/Architecture/TraitTest.php b/tests/Architecture/TraitTest.php index 1cde0a0..b5f3fa5 100644 --- a/tests/Architecture/TraitTest.php +++ b/tests/Architecture/TraitTest.php @@ -13,10 +13,10 @@ use KirschbaumDevelopment\MailIntercept\Assertions\ToAssertions; use KirschbaumDevelopment\MailIntercept\Assertions\UnstructuredHeaderAssertions; -arch()->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') +arch('WithMailInterceptor is a trait')->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') ->toBeTrait(); -arch()->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') +arch('WithMailInterceptor uses traits')->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') ->toUseTraits([ BccAssertions::class, CcAssertions::class,