Update interface (#17)

Co-authored-by: bastien ollier <bastien.ollier@etu.uca.fr>
Reviewed-on: https://codefirst.iut.uca.fr/git/clement.freville2/herbarium/pulls/17
Reviewed-by: Clément FRÉVILLE <clement.freville2@etu.uca.fr>
Co-authored-by: Bastien OLLIER <bastien.ollier@noreply.codefirst.iut.uca.fr>
Co-committed-by: Bastien OLLIER <bastien.ollier@noreply.codefirst.iut.uca.fr>
This commit is contained in:
Bastien OLLIER
2024-06-13 09:30:25 +02:00
committed by Clément FRÉVILLE
parent bc6951d0a5
commit 0beb0cd95f
14 changed files with 45 additions and 27 deletions

View File

@@ -15,7 +15,7 @@ class PostControllerTest extends WebTestCase
private KernelBrowser $client;
private EntityManagerInterface $manager;
private PostRepository $repository;
private string $path = '/post/';
private string $path = '/posts/';
protected function setUp(): void
{
@@ -40,10 +40,10 @@ class PostControllerTest extends WebTestCase
public function testIndex(): void
{
$crawler = $this->client->request('GET', '/post');
$crawler = $this->client->request('GET', '/');
self::assertResponseStatusCodeSame(200);
self::assertPageTitleContains('Post index');
self::assertPageTitleContains('Posts');
// Use the $crawler to perform additional assertions e.g.
// self::assertSame('Some text on the page', $crawler->filter('.p')->first());