summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/MapperTestUtility.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-11-14 00:09:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-08 13:58:12 +0100
commit8abddeab4f541883721d912f97dec07bffdfc6b8 (patch)
tree8c176f9ca2fd9e757807481997f265212f154eb2 /tests/Unit/Db/MapperTestUtility.php
parent3d98707be95322d16f5883d7a945d658d6316146 (diff)
Remove usage of old Folder code
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Db/MapperTestUtility.php')
-rw-r--r--tests/Unit/Db/MapperTestUtility.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Unit/Db/MapperTestUtility.php b/tests/Unit/Db/MapperTestUtility.php
index 695738179..725f0c3c0 100644
--- a/tests/Unit/Db/MapperTestUtility.php
+++ b/tests/Unit/Db/MapperTestUtility.php
@@ -24,6 +24,9 @@
namespace OCA\News\Tests\Unit\Db;
use Doctrine\DBAL\Driver\PDOStatement;
+use Doctrine\DBAL\Driver\Statement;
+use OCA\News\Tests\Unit\Service\ServiceTest;
+use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use PHPUnit\Framework\MockObject\MockObject;
@@ -45,6 +48,16 @@ abstract class MapperTestUtility extends TestCase
*/
protected $query;
+ /**
+ * @var MockObject|IQueryBuilder
+ */
+ protected $builder;
+
+ /**
+ * @var MockObject|Statement
+ */
+ protected $cursor;
+
/**
* Run this function before the actual test to either set or initialize the
@@ -60,5 +73,11 @@ abstract class MapperTestUtility extends TestCase
$this->query = $this->getMockBuilder(\PDOStatement::class)
->getMock();
+
+ $this->builder = $this->getMockBuilder(IQueryBuilder::class)
+ ->getMock();
+
+ $this->cursor = $this->getMockBuilder(Statement::class)
+ ->getMock();
}
}