summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/MapperTestUtility.php
diff options
context:
space:
mode:
authorDaniel Opitz <git@copynpaste.de>2018-10-16 22:37:48 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2018-12-04 17:10:46 +0100
commite158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 (patch)
tree4d3b4da643a428f259ca9fe1c63d97f8cecfb5fc /tests/Unit/Db/MapperTestUtility.php
parent5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff)
use magic class constant instead of classname strings
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 = [];