Skip to content

Commit

Permalink
♻️ codeclimate, added a few tests and fix a few bugs
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Jul 21, 2024
1 parent 4c4b33e commit e08cc6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/JanitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@

test('method', function () {
$janitor = new Janitor();
expect($janitor->command('janitor:call --method whoAmI --page page://vf0xqIlpU0ZlSorI')['status'])->toEqual(200);
expect($janitor->command('janitor:call --method whoAmI --page page://vf0xqIlpU0ZlSorI --quiet')['status'])->toEqual(200);

expect($janitor->command('janitor:call --method repeatAfterMe --data hello --page page://vf0xqIlpU0ZlSorI')['message'])->toEqual('Repeat after me: hello');
expect($janitor->command('janitor:call --method repeatAfterMe --data hello --page page://vf0xqIlpU0ZlSorI --quiet')['message'])->toEqual('Repeat after me: hello');

expect($janitor->command('janitor:call --method nullberry --page page://vf0xqIlpU0ZlSorI')['status'])->toEqual(200);
expect($janitor->command('janitor:call --method nullberry --page page://vf0xqIlpU0ZlSorI --quiet')['status'])->toEqual(200);

expect($janitor->command('janitor:call --method boolberry --page page://vf0xqIlpU0ZlSorI')['status'])->toEqual(204);
expect($janitor->command('janitor:call --method boolberry --page page://vf0xqIlpU0ZlSorI --quiet')['status'])->toEqual(204);
});

it('can resolve models', function () {
Expand Down

0 comments on commit e08cc6c

Please sign in to comment.