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 6ed4472 commit 2f6a3b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/Autoload/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

$expected = array_values($this->commands);
$registered = array_values($mock->getRegisteredCommands());
expect($expected)->each(fn ($item) => $item->toBeIn($registered));
expect($registered)->toHaveCount(count($expected));
expect($registered)->each(fn ($item) => $item->toBeIn($expected));
});
});

Expand Down Expand Up @@ -75,7 +75,7 @@

$expected = array_values($this->commands);
$registered = array_values($mock->getRegisteredCommands());
expect($expected)->each(fn ($item) => $item->toBeIn($registered));
expect($registered)->toHaveCount(count($expected));
expect($registered)->each(fn ($item) => $item->toBeIn($expected));
});
});
6 changes: 3 additions & 3 deletions tests/Autoload/IgnoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
...DDD::autoloader()->discoverCommands(),
];

expect($expected)->each(fn ($item) => $item->toBeIn($discovered));
expect($discovered)->toHaveCount(count($expected));
expect($discovered)->each(fn ($item) => $item->toBeIn($expected));

Config::set('ddd.autoload_ignore', ['Providers']);

Expand All @@ -80,8 +80,8 @@
...DDD::autoloader()->discoverCommands(),
];

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

it('can register a custom autoload filter', function () {
Expand All @@ -95,8 +95,8 @@
...DDD::autoloader()->discoverCommands(),
];

expect($expected)->each(fn ($item) => $item->toBeIn($discovered));
expect($discovered)->toHaveCount(count($expected));
expect($discovered)->each(fn ($item) => $item->toBeIn($expected));

$secret = null;

Expand Down
4 changes: 2 additions & 2 deletions tests/Autoload/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@

$expected = array_values($this->providers);
$registered = array_values($mock->getRegisteredProviders());
expect($expected)->each(fn ($item) => $item->toBeIn($registered));
expect($registered)->toHaveCount(count($expected));
expect($registered)->each(fn ($item) => $item->toBeIn($expected));
});
});

Expand Down Expand Up @@ -90,7 +90,7 @@

$expected = array_values($this->providers);
$registered = array_values($mock->getRegisteredProviders());
expect($expected)->each(fn ($item) => $item->toBeIn($registered));
expect($registered)->toHaveCount(count($expected));
expect($registered)->each(fn ($item) => $item->toBeIn($expected));
});
});

0 comments on commit 2f6a3b5

Please sign in to comment.