From 4e4f45e2bc9edf1b1fcff20d776afe1629460d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 1 Jan 2016 23:10:39 +0100 Subject: [PATCH] fix test with gender update As the value was translated, the test cannot check in the page if the value is updated. We also remove the "incomplete" test, as we cannot consider this test is incomplete because the new value is checked from the database. --- Tests/Controller/PersonControllerUpdateTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/Controller/PersonControllerUpdateTest.php b/Tests/Controller/PersonControllerUpdateTest.php index cfd00dc90..9429e4e3e 100644 --- a/Tests/Controller/PersonControllerUpdateTest.php +++ b/Tests/Controller/PersonControllerUpdateTest.php @@ -177,8 +177,9 @@ class PersonControllerUpdateTest extends WebTestCase $this->assertGreaterThan(0, $crawler->filter('.success')->count(), 'a element .success is shown'); - if($field == 'birthdate' or $field == 'memo' or $field == 'countryOfBirth' or $field == 'nationality') { - $this->markTestIncomplete('Test html:contains("'.$value.'") was not performed'); + if($field == 'birthdate' or $field == 'memo' or $field == 'countryOfBirth' or $field == 'nationality' + or $field == 'gender') { + // we do not perform test on the web page contents. } else { $this->assertGreaterThan(0, $crawler->filter('html:contains("'.$value.'")')->count()); }