Skip to content

Commit 55f3e1f

Browse files
committed
Complete the test
1 parent 236a47e commit 55f3e1f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/spec/OperationTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ public function testRead()
8181

8282
$this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $operation->security);
8383
$this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirement::class, $operation->security->getRequirement('petstore_auth'));
84-
// TODO
85-
// $this->assertCount(2, $operation->security[0]->petstore_auth);
86-
// $this->assertEquals(['write:pets', 'read:pets'], $operation->security[0]->petstore_auth);
84+
$this->assertCount(2, $operation->security->getRequirement('petstore_auth')->getSerializableData());
85+
$this->assertEquals(['write:pets', 'read:pets'], $operation->security->getRequirement('petstore_auth')->getSerializableData());
8786

8887
$this->assertInstanceOf(ExternalDocumentation::class, $operation->externalDocs);
8988
$this->assertEquals('Find more info here', $operation->externalDocs->description);

0 commit comments

Comments
 (0)