Преглед изворни кода

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

gedi пре 13 година
родитељ
комит
80b687283d
1 измењених фајлова са 3 додато и 0 уклоњено
  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('Женя');