]> git.agnieray.net Git - galette.git/commitdiff
Fix tests
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 29 Jun 2020 17:00:56 +0000 (19:00 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 29 Jun 2020 17:00:56 +0000 (19:00 +0200)
tests/Galette/Entity/tests/units/Adherent.php
tests/Galette/Entity/tests/units/Contribution.php
tests/Galette/Entity/tests/units/PaymentType.php

index 7f491ace54d77c2324a6cb55099389e7435041b7..65806a02344eb21accbd39d3f6d7f8d6de89da6b 100644 (file)
@@ -349,7 +349,7 @@ class Adherent extends atoum
             'url_adh' => 'http://bouchet.com/',
             'activite_adh' => true,
             'id_statut' => 9,
-            'pref_lang' => 'de_DE',
+            'pref_lang' => 'en_US',
             'fingerprint' => 'FAKER95842354',
             'societe_adh' => ''
         ];
index 4665d0a959f0574ae41fd75e2b53175dcf685462..8a8f56eaf69dd721f575a130e0e228d9064c9488 100644 (file)
@@ -416,7 +416,7 @@ class Contribution extends atoum
             'url_adh' => 'http://bouchet.com/',
             'activite_adh' => true,
             'id_statut' => 9,
-            'pref_lang' => 'de_DE',
+            'pref_lang' => 'en_US',
             'fingerprint' => 'FAKER' . $this->seed,
             'societe_adh' => ''
         ];
index fe971503bdfbab7a0f1bc74757bd38dc864e6a6e..c7675f66e204ca0769c9d6bcb0fd2d3f08e71b0c 100644 (file)
@@ -158,7 +158,7 @@ class PaymentType extends atoum
             )
         );
         $results = $this->zdb->execute($select);
-        $this->integer(count($results))->isIdenticalTo(10);
+        $this->integer(count($results))->isIdenticalTo(count($this->i18n->getArrayList()));
 
         $type = new \Galette\Entity\PaymentType($this->zdb, \Galette\Entity\PaymentType::CASH);
         $this->exception(