Skip to content

Commit

Permalink
Pest updates for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferens committed Oct 21, 2024
1 parent 54a35cc commit 05819b5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tests/Architecture/AssertableMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions tests/Architecture/AssertionsTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

arch()->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();
6 changes: 3 additions & 3 deletions tests/Architecture/PresetTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

arch()->preset()->laravel();
arch('laravel preset')->preset()->laravel();

arch()->preset()->php();
arch('php preset')->preset()->php();

arch()->preset()->security();
arch('security preset')->preset()->security();
4 changes: 2 additions & 2 deletions tests/Architecture/TraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 05819b5

Please sign in to comment.