Skip to content

Commit d92c45a

Browse files
committed
test: use AnnotationReader directly instead of a removed service
1 parent 97c8aa1 commit d92c45a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Util/AnnotationFilterExtractorTraitTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use ApiPlatform\Tests\Fixtures\DummyEntityFilterAnnotated;
2323
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\DummyCar;
2424
use ApiPlatform\Tests\Fixtures\TestBundle\Util\AnnotationFilterExtractor;
25+
use Doctrine\Common\Annotations\AnnotationReader;
2526
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
2627

2728
class AnnotationFilterExtractorTraitTest extends KernelTestCase
@@ -31,7 +32,7 @@ class AnnotationFilterExtractorTraitTest extends KernelTestCase
3132
protected function setUp(): void
3233
{
3334
self::bootKernel();
34-
$this->extractor = new AnnotationFilterExtractor(static::$kernel->getContainer()->get('test.annotation_reader'));
35+
$this->extractor = new AnnotationFilterExtractor(new AnnotationReader());
3536
}
3637

3738
public function testReadAnnotations()

0 commit comments

Comments
 (0)