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

Fix tests of #4557 (#4564)

Tests written for #4557 were wrong
and were not testing anything.
Jules Lamur пре 7 година
родитељ
комит
01995b8d1c
1 измењених фајлова са 1 додато и 1 уклоњено
  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);