File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments