diff --git a/tests/Layer.php b/tests/Layer.php index a7f17fc..d319c86 100644 --- a/tests/Layer.php +++ b/tests/Layer.php @@ -29,19 +29,19 @@ it('loads namespaces', function () { expect('Tests\Fixtures\Domains\A\Models') - ->getObjects() + ->getTargets() ->toBe([ArticleDomainA::class]); }); it('loads namespaces using wildcards', function () { expect('Tests\Fixtures\Domains\*\Models') - ->getObjects() + ->getTargets() ->toBe([ArticleDomainA::class, ArticleDomainB::class]); }); it('loads namespaces using multiple wildcards', function () { expect('Tests\Fixtures\Domains\*\*\Models') - ->getObjects() + ->getTargets() ->toBe([BazableDomainA::class, BazableDomainB::class]); }); diff --git a/tests/Pest.php b/tests/Pest.php index 655339f..821b304 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -26,7 +26,7 @@ }); }); -expect()->extend('getObjects', function () { +expect()->extend('getTargets', function () { $classes = []; Targeted::make( $this,