diff --git a/tests/TestCase/Lib/OpenApi/SchemaPropertyTest.php b/tests/TestCase/Lib/OpenApi/SchemaPropertyTest.php index 9c6034bc..22bad89c 100644 --- a/tests/TestCase/Lib/OpenApi/SchemaPropertyTest.php +++ b/tests/TestCase/Lib/OpenApi/SchemaPropertyTest.php @@ -1,9 +1,10 @@ expectException(\InvalidArgumentException::class); + $this->expectException(InvalidArgumentException::class); new SchemaProperty('test', 'invalid'); } -} \ No newline at end of file + + public function test_enum_properties_is_indexed_numerically(): void + { + $vars = (new SchemaProperty())->setEnum(['test' => 'test'])->toArray(); + $this->assertArrayHasKey(0, $vars['enum']); + } +}