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 25
25
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \City ;
26
26
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \Employee ;
27
27
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \PointOfInterest ;
28
+ use Doctrine \Common \Persistence \Mapping \ClassMetadata ;
29
+ use Doctrine \Common \Persistence \ObjectManager ;
30
+ use Doctrine \Common \Persistence \ObjectRepository ;
28
31
use PHPUnit \Framework \TestCase ;
29
32
30
33
class EntityToIdentifierTransformerTest extends TestCase
@@ -55,9 +58,9 @@ protected function setUp()
55
58
$ this ->className = get_class ($ this ->entity );
56
59
$ this ->identifier = $ this ->entity ->getId ();
57
60
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 );
61
64
62
65
$ this ->entityManager ->method ('getRepository ' )->willReturn ($ this ->repository );
63
66
$ this ->entityManager ->method ('getClassMetadata ' )->willReturn ($ this ->metadata );
You can’t perform that action at this time.
0 commit comments