Skip to content

Commit 04f372f

Browse files
committed
test updates
1 parent b3f43e4 commit 04f372f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Feature/ExportPostmanTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public static function providerFormDataEnabled(): array
389389

390390
private function countCollectionItems(array $collectionItems)
391391
{
392-
$sum = -3;
392+
$sum = 0;
393393

394394
foreach ($collectionItems as $item) {
395395
$sum += $this->retrieveRoutes($item);
@@ -400,6 +400,11 @@ private function countCollectionItems(array $collectionItems)
400400

401401
private function retrieveRoutes(array $route)
402402
{
403+
// Skip patch routes
404+
if (isset($route['request']['method']) && $route['request']['method'] === 'PATCH') {
405+
return 0;
406+
}
407+
403408
if (isset($route['item'])) {
404409
$sum = 0;
405410

0 commit comments

Comments
 (0)