Lint
This commit is contained in:
parent
b8164cd3d2
commit
81670b900d
|
@ -36,7 +36,7 @@ class GroupFake extends Fake
|
|||
});
|
||||
}
|
||||
|
||||
private function fakeResponse(?int $parentId = null, array $data): void
|
||||
private function fakeResponse(?int $parentId, array $data): void
|
||||
{
|
||||
$url = 'https://nami.dpsg.de/ica/rest/nami/gruppierungen/filtered-for-navigation/gruppierung/node/' . ($parentId ?: 'root');
|
||||
Http::fake(function ($request) use ($data, $url) {
|
||||
|
@ -52,14 +52,16 @@ class GroupFake extends Fake
|
|||
|
||||
public function assertRootFetched(): void
|
||||
{
|
||||
Http::assertSent(fn ($request) => 'https://nami.dpsg.de/ica/rest/nami/gruppierungen/filtered-for-navigation/gruppierung/node/root' === $request->url()
|
||||
Http::assertSent(
|
||||
fn ($request) => 'https://nami.dpsg.de/ica/rest/nami/gruppierungen/filtered-for-navigation/gruppierung/node/root' === $request->url()
|
||||
&& 'GET' === $request->method()
|
||||
);
|
||||
}
|
||||
|
||||
public function assertFetched(int $id): void
|
||||
{
|
||||
Http::assertSent(fn ($request) => $request->url() === 'https://nami.dpsg.de/ica/rest/nami/gruppierungen/filtered-for-navigation/gruppierung/node/'.$id
|
||||
Http::assertSent(
|
||||
fn ($request) => $request->url() === 'https://nami.dpsg.de/ica/rest/nami/gruppierungen/filtered-for-navigation/gruppierung/node/' . $id
|
||||
&& 'GET' === $request->method()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue