mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Tests > fix "Call to undefined method getMock()" bug > make compatible with PHPUnit 8.0 (and PHP 7.2+)
This commit is contained in:
@@ -212,7 +212,7 @@ class RepositoryTest extends BaseTestCase
|
||||
|
||||
public function testGetEntityOrderedQueryBuilderUsingDefaults()
|
||||
{
|
||||
$entityManager = $this->getMock(EntityManagerInterface::class);
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
|
||||
$entityRepository = $this
|
||||
->getMockBuilder(EntityRepository::class)
|
||||
@@ -256,7 +256,7 @@ class RepositoryTest extends BaseTestCase
|
||||
*/
|
||||
public function testGetEntityOrderedQueryBuilder($property, $direction, $expectedOrderBy)
|
||||
{
|
||||
$entityManager = $this->getMock(EntityManagerInterface::class);
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
|
||||
$entityRepository = $this
|
||||
->getMockBuilder(EntityRepository::class)
|
||||
|
||||
Reference in New Issue
Block a user