Skip to content

Commit c911987

Browse files
committed
Fix failing tests 2
1 parent c1db324 commit c911987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/spec/OpenApiTest.php

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

223223
// security
224-
$this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $openapi->security);
224+
$openapi->security !== null && $this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $openapi->security);
225225
$this->assertAllInstanceOf(\cebe\openapi\spec\SecurityRequirement::class, $openapi->security->getRequirements());
226226

227227
// tags

0 commit comments

Comments
 (0)