Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Symfony 4 support #276

Merged
merged 19 commits into from
Mar 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Tests/Event/Listenener/PrepareListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testGetForceCaseInsensitivity()
$pgPlatform = $this->getMockBuilder('Doctrine\DBAL\Platforms\PostgreSqlPlatform')->getMock();
$myPlatform = $this->getMockBuilder('Doctrine\DBAL\Platforms\MySqlPlatform')->getMock();

$connection = $this->getMock(
$connection = $this->getMockClass(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe getMockBuilder()? And then getMock() on the result.

'Doctrine\DBAL\Connection',
array(),
array(),
Expand All @@ -41,7 +41,7 @@ public function testGetForceCaseInsensitivity()
->method('getConnection')
->will($this->returnValue($connection));

$queryBuilder = $this->getMock(
$queryBuilder = $this->getMockClass(
'\Doctrine\ORM\QueryBuilder',
array('getEntityManager'),
array($entityManager)
Expand All @@ -54,7 +54,7 @@ public function testGetForceCaseInsensitivity()
$this->assertTrue($listener->getForceCaseInsensitivity($queryBuilder));
$this->assertFalse($listener->getForceCaseInsensitivity($queryBuilder));

$queryBuilder = $this->getMock(
$queryBuilder = $this->getMockClass(
'Doctrine\DBAL\Query\QueryBuilder',
array('getConnection'),
array($connection)
Expand Down