From 2566640dbd8751de77b450ebfdcef747ae7a88ae Mon Sep 17 00:00:00 2001 From: "hugo.pradier2" Date: Wed, 12 Jun 2024 15:48:08 +0200 Subject: [PATCH] test --- tests/Controller/PostControllerTest.php | 4 ++-- tests/Controller/SpeciesControllerTest.php | 4 ++-- translations/messages.en.xlf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Controller/PostControllerTest.php b/tests/Controller/PostControllerTest.php index 2093817..2cdb5ce 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 5ce80dd..6a9ccda 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 131da28..4ff5f7a 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -63,7 +63,7 @@ show - Shpw + Show no_records_found