#33: limit orders on first page and paginate
All checks were successful
/ ls (pull_request) Successful in 31s
/ ls (push) Successful in 32s
/ ls (release) Successful in 25s

This commit is contained in:
lubiana 2024-07-08 21:23:35 +02:00
parent 7e53705b4b
commit 5d41b6fef5
No known key found for this signature in database
4 changed files with 57 additions and 19 deletions

View file

@ -41,7 +41,7 @@ final class FoodOrderControllerTest extends DbWebTest
$this->manager->persist($this->vendor);
$this->manager->flush();
$crawler = $this->client->request('GET', $this->path);
$crawler = $this->client->request('GET', "{$this->path}list");
self::assertResponseStatusCodeSame(200);
self::assertPageTitleContains('FoodOrder index');
$this->assertCount(
@ -61,7 +61,7 @@ final class FoodOrderControllerTest extends DbWebTest
'food_order[foodVendor]' => $this->vendor->getId(),
]);
self::assertResponseRedirects($this->path);
self::assertResponseRedirects("{$this->path}list");
self::assertSame(1, $this->repository->count([]));
}
}