diff --git a/tests/Generator/Operation/OperationTest.php b/tests/Generator/Operation/OperationTest.php index 8c97017a..0eb8f2c7 100644 --- a/tests/Generator/Operation/OperationTest.php +++ b/tests/Generator/Operation/OperationTest.php @@ -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'); +});