Skip to content

Commit

Permalink
Improved naming
Browse files Browse the repository at this point in the history
  • Loading branch information
naxvog committed Sep 30, 2024
1 parent 2684a9b commit 3109259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/Layer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
});
});

expect()->extend('getObjects', function () {
expect()->extend('getTargets', function () {
$classes = [];
Targeted::make(
$this,
Expand Down

0 comments on commit 3109259

Please sign in to comment.