浏览代码

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