Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error in operation builder
Browse files Browse the repository at this point in the history
Starfox64 authored Jan 22, 2025
1 parent 1577b91 commit f4b204e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Builders/SecurityBuilderTest.php
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
use GoldSpecDigital\ObjectOrientedOAS\Objects\SecurityScheme;
use GoldSpecDigital\ObjectOrientedOAS\OpenApi;
use phpDocumentor\Reflection\DocBlock;
use Vyuldashev\LaravelOpenApi\Attributes\Operation as AttributesOperation;
use Vyuldashev\LaravelOpenApi\Attributes\SecurityRequirement as AttributesSecurityRequirement;
use Vyuldashev\LaravelOpenApi\Builders\Paths\Operation\SecurityBuilder;
use Vyuldashev\LaravelOpenApi\Builders\Paths\OperationsBuilder;
@@ -161,6 +162,7 @@ public function testWeCanAddTurnOffOperationSecurityUsingBuilder()
$routeInfo->name = 'test route';
$routeInfo->actionDocBlock = new DocBlock('Test');
$routeInfo->actionAttributes = collect([
new AttributesOperation(),
new AttributesSecurityRequirement(null),
]);

0 comments on commit f4b204e

Please sign in to comment.