File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 29
29
"api-platform/core" : " ^3.0 || ^4.0" ,
30
30
"behat/behat" : " ^3.1" ,
31
31
"dg/bypass-finals" : " ^1.1" ,
32
- "doctrine/data-fixtures" : " ^1.2" ,
32
+ "doctrine/data-fixtures" : " ^1.2 || ^2.0 " ,
33
33
"doctrine/doctrine-bundle" : " ^2.11" ,
34
- "doctrine/orm" : " ^2.6.3" ,
34
+ "doctrine/orm" : " ^2.6.3 || ^3.0 " ,
35
35
"friends-of-behat/symfony-extension" : " ^2.0.11 || ^2.1.0" ,
36
36
"jms/serializer-bundle" : " ^1.4 || ^2.3 || ^3.0 || ^4.0 || ^5.0" ,
37
37
"laminas/laminas-code" : " ^3.4 || ^4.0" ,
Original file line number Diff line number Diff line change @@ -45,11 +45,12 @@ protected function setUp(): void
45
45
46
46
public function testFindOneBy (): void
47
47
{
48
+ $ expected = new \stdClass ();
48
49
$ this ->registryMock ->expects ($ this ->once ())->method ('getManagerForClass ' )->with ('class ' )->willReturn ($ this ->managerMock );
49
50
$ this ->managerMock ->expects ($ this ->once ())->method ('getRepository ' )->with ('class ' )->willReturn ($ this ->repositoryMock );
50
- $ this ->repositoryMock ->expects ($ this ->once ())->method ('findOneBy ' )->with (['criteria ' ])->willReturn (' foo ' );
51
+ $ this ->repositoryMock ->expects ($ this ->once ())->method ('findOneBy ' )->with (['criteria ' ])->willReturn ($ expected );
51
52
52
- $ this ->assertEquals (' foo ' , $ this ->doctrineManager ->findOneBy ('class ' , ['criteria ' ]));
53
+ $ this ->assertEquals ($ expected , $ this ->doctrineManager ->findOneBy ('class ' , ['criteria ' ]));
53
54
}
54
55
55
56
public function testPersist (): void
You can’t perform that action at this time.
0 commit comments