Bläddra i källkod

Fix tests of #4557 (#4564)

Tests written for #4557 were wrong
and were not testing anything.
Jules Lamur 7 år sedan
förälder
incheckning
01995b8d1c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Tests/DependencyInjection/Compiler/AnnotationCompilerPassTest.php

+ 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);