diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-18 22:34:14 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | af84bbf204cc6594d7fddfed387139f869a5c061 (patch) | |
tree | eb83b8d133f823385c9e21955678033336bf8903 /tests/Unit/Db/ItemMapperTest.php | |
parent | 7306370ececd6ada186061af7deb9437d6182be6 (diff) |
✅ Item: update tests - include sharer display name
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit/Db/ItemMapperTest.php')
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 5cb42c3fa..a1b9a46ae 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -32,6 +32,7 @@ use OCP\DB\QueryBuilder\IFunctionBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\DB\QueryBuilder\IQueryFunction; use OCP\IDBConnection; +use OCP\IUserManager; use Test\TestCase; /** @@ -46,6 +47,8 @@ class ItemMapperTest extends MapperTestUtility private $time; /** @var ItemMapperV2 */ private $class; + /** @var IUserManager */ + private $userManager; /** * @covers \OCA\News\Db\ItemMapperV2::__construct @@ -55,8 +58,10 @@ class ItemMapperTest extends MapperTestUtility parent::setUp(); $this->time = $this->getMockBuilder(Time::class) ->getMock(); + $this->userManager = $this->getMockBuilder(IUserManager::class) + ->getMock(); - $this->class = new ItemMapperV2($this->db, $this->time); + $this->class = new ItemMapperV2($this->db, $this->time, $this->userManager); } /** |