Fix Pint formatting
This commit is contained in:
@@ -23,8 +23,8 @@ class ApiCrossVersionRouteCompatibilityMatrixTest extends FullSurfaceE2EContract
|
||||
? $this->postJson($legacy, ['email' => 'bad@example.test', 'password' => 'wrong'])
|
||||
: $this->actingAs($this->admin, 'api')->getJson($legacy);
|
||||
|
||||
$this->assertNoServerError($versionedResponse, 'versioned compatibility ' . $versioned);
|
||||
$this->assertNoServerError($legacyResponse, 'legacy compatibility ' . $legacy);
|
||||
$this->assertNoServerError($versionedResponse, 'versioned compatibility '.$versioned);
|
||||
$this->assertNoServerError($legacyResponse, 'legacy compatibility '.$legacy);
|
||||
$this->assertLessThan(500, $versionedResponse->getStatusCode());
|
||||
$this->assertLessThan(500, $legacyResponse->getStatusCode());
|
||||
}
|
||||
@@ -37,10 +37,10 @@ class ApiCrossVersionRouteCompatibilityMatrixTest extends FullSurfaceE2EContract
|
||||
foreach ($this->apiRoutes() as $route) {
|
||||
$uri = $route->uri();
|
||||
if (! str_starts_with($uri, 'api/v1/') && ! str_contains($uri, 'docs') && ! str_contains($uri, 'health')) {
|
||||
$legacyLike[] = $this->primaryMethod($route) . ' ' . $uri;
|
||||
$legacyLike[] = $this->primaryMethod($route).' '.$uri;
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertLessThan(80, count($legacyLike), 'Unversioned API compatibility routes should remain bounded, not become a second API by accident: ' . implode(', ', $legacyLike));
|
||||
$this->assertLessThan(80, count($legacyLike), 'Unversioned API compatibility routes should remain bounded, not become a second API by accident: '.implode(', ', $legacyLike));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user