From a124a66af453f0719b31f2db935fb20ad7309092 Mon Sep 17 00:00:00 2001 From: "hugo.pradier2" Date: Wed, 12 Jun 2024 16:04:58 +0200 Subject: [PATCH] test 2 --- templates/post/edit.html.twig | 1 - templates/species/edit.html.twig | 1 - tests/Controller/PostControllerTest.php | 4 ++-- tests/Controller/SpeciesControllerTest.php | 4 ++-- translations/messages.en.xlf | 8 ++++++++ translations/messages.fr.xlf | 8 ++++++++ 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/templates/post/edit.html.twig b/templates/post/edit.html.twig index 7897924..b8167d8 100644 --- a/templates/post/edit.html.twig +++ b/templates/post/edit.html.twig @@ -6,7 +6,6 @@

{{ 'edit_post'|trans }}

{{ include('post/_form.html.twig', {'button_label': 'update'|trans}) }} - {{ 'back_to_list'|trans }} {{ include('post/_delete_form.html.twig') }} diff --git a/templates/species/edit.html.twig b/templates/species/edit.html.twig index 816cf07..63a9d4e 100644 --- a/templates/species/edit.html.twig +++ b/templates/species/edit.html.twig @@ -4,7 +4,6 @@ {% block body %}

{{ 'edit_species'|trans }}

- {{ include('species/_form.html.twig', {'button_label': 'update'|trans}) }} {{ 'back_to_list'|trans }} diff --git a/tests/Controller/PostControllerTest.php b/tests/Controller/PostControllerTest.php index 2cdb5ce..2093817 100644 --- a/tests/Controller/PostControllerTest.php +++ b/tests/Controller/PostControllerTest.php @@ -52,7 +52,7 @@ class PostControllerTest extends WebTestCase { self::assertResponseStatusCodeSame(200); - $this->client->submitForm('save', [ + $this->client->submitForm('Save', [ 'post[foundDate]' => '2024-01-01 00:00:00', 'post[latitude]' => '45.0', 'post[longitude]' => '45.0', @@ -91,7 +91,7 @@ class PostControllerTest extends WebTestCase $this->client->request('GET', sprintf('%s%s/edit', $this->path, $fixture->getId())); - $this->client->submitForm('update', [ + $this->client->submitForm('Update', [ 'post[foundDate]' => '2024-03-25 00:00:00', 'post[latitude]' => '90', 'post[longitude]' => '90', diff --git a/tests/Controller/SpeciesControllerTest.php b/tests/Controller/SpeciesControllerTest.php index 6a9ccda..5ce80dd 100644 --- a/tests/Controller/SpeciesControllerTest.php +++ b/tests/Controller/SpeciesControllerTest.php @@ -54,7 +54,7 @@ class SpeciesControllerTest extends WebTestCase self::assertResponseStatusCodeSame(200); - $this->client->submitForm('save', [ + $this->client->submitForm('Save', [ 'species[scientific_name]' => 'Testing', 'species[vernacular_name]' => 'Testing', 'species[region]' => 'Testing', @@ -95,7 +95,7 @@ class SpeciesControllerTest extends WebTestCase $this->client->request('GET', sprintf('%s%s/edit', $this->path, $fixture->getId())); - $this->client->submitForm('update', [ + $this->client->submitForm('Update', [ 'species[scientific_name]' => 'Something New', 'species[vernacular_name]' => 'Something New', 'species[region]' => 'Something New', diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 4ff5f7a..d46810d 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -153,6 +153,14 @@ edit_post Edit post + + update + Update + + + save + Sauvegarder + diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf index cf3e1e5..a8127f4 100644 --- a/translations/messages.fr.xlf +++ b/translations/messages.fr.xlf @@ -153,6 +153,14 @@ edit_post Éditer la publication + + update + Mettre à jour + + + save + Sauvegarder +