Skip to content

Commit

Permalink
test: extend operation test
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-bruno committed Jan 8, 2024
1 parent 3c7c4d7 commit 0f6a798
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Generator/Operation/OperationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@
->and($array)->toHaveKey('deprecated')
->and($array['deprecated'])->toBeTrue();
});

it('default deprecated key is false', function () {
$operation = new \Dedoc\Scramble\Support\Generator\Operation('get');

$array = $operation->toArray();

expect($operation->deprecated)->toBeFalse()
->and($array)->not()->toHaveKey('deprecated');
});

0 comments on commit 0f6a798

Please sign in to comment.