#33: limit orders on first page and paginate
This commit is contained in:
parent
7e53705b4b
commit
5d41b6fef5
4 changed files with 57 additions and 19 deletions
|
@ -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([]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue