Skip to content

Commit e52261a

Browse files
chore: support doctrine/orm 3.0 and doctrine/data-fixtures 2.0
1 parent 10e9613 commit e52261a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"api-platform/core": "^3.0 || ^4.0",
3030
"behat/behat": "^3.1",
3131
"dg/bypass-finals": "^1.1",
32-
"doctrine/data-fixtures": "^1.2",
32+
"doctrine/data-fixtures": "^1.2 || ^2.0",
3333
"doctrine/doctrine-bundle": "^2.11",
34-
"doctrine/orm": "^2.6.3",
34+
"doctrine/orm": "^2.6.3 || ^3.0",
3535
"friends-of-behat/symfony-extension": "^2.0.11 || ^2.1.0",
3636
"jms/serializer-bundle": "^1.4 || ^2.3 || ^3.0 || ^4.0 || ^5.0",
3737
"laminas/laminas-code": "^3.4 || ^4.0",

tests/Manager/Bridge/DoctrineManagerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ protected function setUp(): void
4545

4646
public function testFindOneBy(): void
4747
{
48+
$expected = new \stdClass();
4849
$this->registryMock->expects($this->once())->method('getManagerForClass')->with('class')->willReturn($this->managerMock);
4950
$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);
5152

52-
$this->assertEquals('foo', $this->doctrineManager->findOneBy('class', ['criteria']));
53+
$this->assertEquals($expected, $this->doctrineManager->findOneBy('class', ['criteria']));
5354
}
5455

5556
public function testPersist(): void

0 commit comments

Comments
 (0)