summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/MapperTestUtility.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db/MapperTestUtility.php')
-rw-r--r--tests/Unit/Db/MapperTestUtility.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/Db/MapperTestUtility.php b/tests/Unit/Db/MapperTestUtility.php
index 0c45a0bba..5417e16bc 100644
--- a/tests/Unit/Db/MapperTestUtility.php
+++ b/tests/Unit/Db/MapperTestUtility.php
@@ -23,6 +23,8 @@
namespace OCA\News\Tests\Unit\Db;
+use OCP\IDBConnection;
+
use PHPUnit\Framework\TestCase;
/**
* Simple utility class for testing mappers
@@ -45,13 +47,11 @@ abstract class MapperTestUtility extends TestCase
{
parent::setUp();
- $this->db = $this->getMockBuilder(
- '\OCP\IDBConnection'
- )
+ $this->db = $this->getMockBuilder(IDBConnection::class)
->disableOriginalConstructor()
->getMock();
- $this->query = $this->createMock('\PDOStatement');
+ $this->query = $this->createMock(\PDOStatement::class);
$this->queryAt = 0;
$this->prepareAt = 0;
$this->iterators = [];