Skip to content

Commit

Permalink
chore: minor maintenance (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror authored Jan 29, 2024
1 parent a1b28e8 commit bd5bb2f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
42 changes: 21 additions & 21 deletions tests/Integration/DumpSpecificationConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ public function testExecuteJson(): void
"example": "true"
}
},
"required": [
"name",
"email",
"age",
"isCitizen"
]
"required": [
"name",
"email",
"age",
"isCitizen"
]
}
},
"PaymentExecuted": {
Expand All @@ -309,10 +309,10 @@ public function testExecuteJson(): void
"example": "2023-11-23 13:41:21"
}
},
"required": [
"amount",
"createdAt"
]
"required": [
"amount",
"createdAt"
]
}
},
"ProductCreated": {
Expand Down Expand Up @@ -348,17 +348,17 @@ public function testExecuteJson(): void
"type": "string"
}
},
"required": [
"id",
"amount",
"currency",
"isPaid",
"createdAt",
"week",
"payment",
"products",
"tags"
]
"required": [
"id",
"amount",
"currency",
"isPaid",
"createdAt",
"week",
"payment",
"products",
"tags"
]
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Integration/UserInterfaceControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
use Ferror\AsyncapiDocBundle\Tests\Integration\Service\Kernel;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Component\HttpFoundation\Request;

class UserInterfaceControllerTest extends TestCase
{
public function test(): void
{
$client = new KernelBrowser(new Kernel('test', true));

$client->request('GET', '/asyncapi');
$client->request(Request::METHOD_GET, '/asyncapi');

$this->assertEquals(200, $client->getResponse()->getStatusCode());
}
Expand Down
42 changes: 21 additions & 21 deletions tests/Unit/Symfony/Controller/JsonSpecificationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ public function test(): void
"example": "true"
}
},
"required": [
"name",
"email",
"age",
"isCitizen"
]
"required": [
"name",
"email",
"age",
"isCitizen"
]
}
},
"PaymentExecuted": {
Expand All @@ -128,10 +128,10 @@ public function test(): void
"example": "2023-11-23 13:41:21"
}
},
"required": [
"amount",
"createdAt"
]
"required": [
"amount",
"createdAt"
]
}
},
"ProductCreated": {
Expand Down Expand Up @@ -167,17 +167,17 @@ public function test(): void
"type": "string"
}
},
"required": [
"id",
"amount",
"currency",
"isPaid",
"createdAt",
"week",
"payment",
"products",
"tags"
]
"required": [
"id",
"amount",
"currency",
"isPaid",
"createdAt",
"week",
"payment",
"products",
"tags"
]
}
}
}
Expand Down

0 comments on commit bd5bb2f

Please sign in to comment.