File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2525use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \City ;
2626use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \Employee ;
2727use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \PointOfInterest ;
28+ use Doctrine \Common \Persistence \Mapping \ClassMetadata ;
29+ use Doctrine \Common \Persistence \ObjectManager ;
30+ use Doctrine \Common \Persistence \ObjectRepository ;
2831use PHPUnit \Framework \TestCase ;
2932
3033class EntityToIdentifierTransformerTest extends TestCase
@@ -55,9 +58,9 @@ protected function setUp()
5558 $ this ->className = get_class ($ this ->entity );
5659 $ this ->identifier = $ this ->entity ->getId ();
5760
58- $ this ->entityManager = $ this ->createMock (' Doctrine\Common\Persistence\ ObjectManager' );
59- $ this ->repository = $ this ->createMock (' Doctrine\Common\Persistence\ ObjectRepository' );
60- $ this ->metadata = $ this ->createMock (' Doctrine\Common\Persistence\Mapping\ ClassMetadata' );
61+ $ this ->entityManager = $ this ->createMock (ObjectManager::class );
62+ $ this ->repository = $ this ->createMock (ObjectRepository::class );
63+ $ this ->metadata = $ this ->createMock (ClassMetadata::class );
6164
6265 $ this ->entityManager ->method ('getRepository ' )->willReturn ($ this ->repository );
6366 $ this ->entityManager ->method ('getClassMetadata ' )->willReturn ($ this ->metadata );
You can’t perform that action at this time.
0 commit comments