fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
+5 -5
View File
@@ -24,11 +24,11 @@ class ApiRouteContractTest extends TestCase
[$class, $method] = explode('@', $action, 2);
if (! class_exists($class) || ! method_exists($class, $method)) {
$missing[] = implode('|', $route->methods()).' '.$route->uri().' -> '.$action;
$missing[] = implode('|', $route->methods()) . ' ' . $route->uri() . ' -> ' . $action;
}
}
$this->assertSame([], $missing, "These API routes reference missing controllers or methods:\n".implode("\n", $missing));
$this->assertSame([], $missing, "These API routes reference missing controllers or methods:\n" . implode("\n", $missing));
}
public function test_api_routes_do_not_duplicate_method_and_uri_pairs(): void
@@ -42,7 +42,7 @@ class ApiRouteContractTest extends TestCase
continue;
}
$key = $method.' '.$route->uri();
$key = $method . ' ' . $route->uri();
if (isset($seen[$key])) {
$duplicates[] = $key;
}
@@ -90,11 +90,11 @@ class ApiRouteContractTest extends TestCase
});
if (! $hasProtection) {
$unprotected[] = implode('|', $methods).' '.$route->uri();
$unprotected[] = implode('|', $methods) . ' ' . $route->uri();
}
}
$this->assertSame([], $unprotected, "Mutating API routes without an obvious auth/throttle middleware:\n".implode("\n", $unprotected));
$this->assertSame([], $unprotected, "Mutating API routes without an obvious auth/throttle middleware:\n" . implode("\n", $unprotected));
}
/**