Przeglądaj źródła

Fix tests of #4557 (#4564)

Tests written for #4557 were wrong
and were not testing anything.
Jules Lamur 7 lat temu
rodzic
commit
01995b8d1c

+ 1 - 1
Tests/DependencyInjection/Compiler/AnnotationCompilerPassTest.php

@@ -97,9 +97,9 @@ class AnnotationCompilerPassTest extends PHPUnit_Framework_TestCase
          */
         $annotation = new Admin();
         $annotation->class = 'Sonata\AdminBundle\Entity\Foo';
+        $annotation->id = 'my.id';
 
         $meta = new ClassMetadata('Sonata\AdminBundle\Tests\Fixtures\Entity\Foo');
-        $meta->id = 'my.id';
 
         $annotation->processMetadata($meta);