Sfoglia il codice sorgente

[translator] skip the test if orm version is >= 2.3

gedi 13 anni fa
parent
commit
80b687283d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      tests/Gedmo/Translator/TranslatableTest.php

+ 3 - 0
tests/Gedmo/Translator/TranslatableTest.php

@@ -102,6 +102,9 @@ class TranslatableTest extends BaseTestCaseORM
 
     public function testTranslatableWithCustomProxy()
     {
+        if (\Doctrine\ORM\Version::compare('2.3.0-dev') <= 0) {
+            $this->markTestSkipped('Seems that orm strictly checks the class name in higher version');
+        }
         $person = new PersonCustom();
         $person->setName('Jen');
         $person->translate('ru_RU')->setName('Женя');