Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 17, 2024
1 parent d70c630 commit d9ea57f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/Autoload/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
'Tests',
'Database/Migrations',
]);

foreach ($this->providers as $provider) {
expect(class_exists($provider))->toBeTrue("{$provider} class does not exist");
}
});

afterEach(function () {
Expand Down Expand Up @@ -97,8 +93,13 @@
->each(fn ($path) => expect(is_dir($path))->toBeTrue("{$path} is not a directory"));

$expected = array_values($this->providers);

foreach ($expected as $provider) {
expect(class_exists($provider))->toBeTrue("class_exists false on expected {$provider}");
}

$registered = array_values($mock->getRegisteredProviders());
expect($mock->discoverProviders())->toEqualCanonicalizing($expected);

expect($expected)->each(fn ($item) => $item->toBeIn($registered));
expect($registered)->toHaveCount(count($expected));
});
Expand Down

0 comments on commit d9ea57f

Please sign in to comment.