소스 검색

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 = new Admin();
         $annotation->class = 'Sonata\AdminBundle\Entity\Foo';
         $annotation->class = 'Sonata\AdminBundle\Entity\Foo';
+        $annotation->id = 'my.id';
 
 
         $meta = new ClassMetadata('Sonata\AdminBundle\Tests\Fixtures\Entity\Foo');
         $meta = new ClassMetadata('Sonata\AdminBundle\Tests\Fixtures\Entity\Foo');
-        $meta->id = 'my.id';
 
 
         $annotation->processMetadata($meta);
         $annotation->processMetadata($meta);