@@ -924,7 +924,7 @@ public function testValidateDTOUniqueness()
924
924
'message ' => 'myMessage ' ,
925
925
'fields ' => ['name ' ],
926
926
'em ' => self ::EM_NAME ,
927
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ Person' ,
927
+ 'entityClass ' => Person::class ,
928
928
]);
929
929
930
930
$ entity = new Person (1 , 'Foo ' );
@@ -958,7 +958,7 @@ public function testValidateMappingOfFieldNames()
958
958
'message ' => 'myMessage ' ,
959
959
'fields ' => ['primaryName ' => 'name ' , 'secondaryName ' => 'name2 ' ],
960
960
'em ' => self ::EM_NAME ,
961
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ DoubleNameEntity' ,
961
+ 'entityClass ' => DoubleNameEntity::class ,
962
962
]);
963
963
964
964
$ entity = new DoubleNameEntity (1 , 'Foo ' , 'Bar ' );
@@ -986,7 +986,7 @@ public function testInvalidateDTOFieldName()
986
986
'message ' => 'myMessage ' ,
987
987
'fields ' => ['primaryName ' => 'name ' ],
988
988
'em ' => self ::EM_NAME ,
989
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ SingleStringIdEntity' ,
989
+ 'entityClass ' => SingleStringIdEntity::class ,
990
990
]);
991
991
992
992
$ dto = new HireAnEmployee ('Foo ' );
@@ -1001,7 +1001,7 @@ public function testInvalidateEntityFieldName()
1001
1001
'message ' => 'myMessage ' ,
1002
1002
'fields ' => ['name2 ' ],
1003
1003
'em ' => self ::EM_NAME ,
1004
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ SingleStringIdEntity' ,
1004
+ 'entityClass ' => SingleStringIdEntity::class ,
1005
1005
]);
1006
1006
1007
1007
$ dto = new HireAnEmployee ('Foo ' );
@@ -1014,7 +1014,7 @@ public function testValidateDTOUniquenessWhenUpdatingEntity()
1014
1014
'message ' => 'myMessage ' ,
1015
1015
'fields ' => ['name ' ],
1016
1016
'em ' => self ::EM_NAME ,
1017
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ Person' ,
1017
+ 'entityClass ' => Person::class ,
1018
1018
'identifierFieldNames ' => ['id ' ],
1019
1019
]);
1020
1020
@@ -1044,7 +1044,7 @@ public function testValidateDTOUniquenessWhenUpdatingEntityWithTheSameValue()
1044
1044
'message ' => 'myMessage ' ,
1045
1045
'fields ' => ['name ' ],
1046
1046
'em ' => self ::EM_NAME ,
1047
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ CompositeIntIdEntity' ,
1047
+ 'entityClass ' => CompositeIntIdEntity::class ,
1048
1048
'identifierFieldNames ' => ['id1 ' , 'id2 ' ],
1049
1049
]);
1050
1050
@@ -1066,7 +1066,7 @@ public function testValidateIdentifierMappingOfFieldNames()
1066
1066
'message ' => 'myMessage ' ,
1067
1067
'fields ' => ['object1 ' => 'objectOne ' , 'object2 ' => 'objectTwo ' ],
1068
1068
'em ' => self ::EM_NAME ,
1069
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ CompositeObjectNoToStringIdEntity' ,
1069
+ 'entityClass ' => CompositeObjectNoToStringIdEntity::class ,
1070
1070
'identifierFieldNames ' => ['object1 ' => 'objectOne ' , 'object2 ' => 'objectTwo ' ],
1071
1071
]);
1072
1072
@@ -1097,7 +1097,7 @@ public function testInvalidateMissingIdentifierFieldName()
1097
1097
'message ' => 'myMessage ' ,
1098
1098
'fields ' => ['object1 ' => 'objectOne ' , 'object2 ' => 'objectTwo ' ],
1099
1099
'em ' => self ::EM_NAME ,
1100
- 'entityClass ' => ' Symfony\Bridge\Doctrine\Tests\Fixtures\ CompositeObjectNoToStringIdEntity' ,
1100
+ 'entityClass ' => CompositeObjectNoToStringIdEntity::class ,
1101
1101
'identifierFieldNames ' => ['object2 ' => 'objectTwo ' ],
1102
1102
]);
1103
1103
0 commit comments