Skip to content

Commit c1db324

Browse files
committed
Fix failing tests
1 parent 565c183 commit c1db324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/spec/OpenApiTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ public function testSpecs($openApiFile)
221221
}
222222

223223
// security
224-
$this->assertAllInstanceOf(\cebe\openapi\spec\SecurityRequirement::class, $openapi->security);
224+
$this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $openapi->security);
225+
$this->assertAllInstanceOf(\cebe\openapi\spec\SecurityRequirement::class, $openapi->security->getRequirements());
225226

226227
// tags
227228
$this->assertAllInstanceOf(\cebe\openapi\spec\Tag::class, $openapi->tags);

0 commit comments

Comments
 (0)