<?php/** * Nextcloud - News * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Alessandro Cosentino <cosenal@gmail.com> * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright 2012 Alessandro Cosentino * @copyright 2012-2014 Bernhard Posselt */namespaceOCA\News\Tests\Unit\Db;useOC\DB\QueryBuilder\Literal;useOCA\News\Db\Item;useOCA\News\Db\ItemMapperV2;useOCA\News\Service\Exceptions\ServiceValidationException;useOCA\News\Utility\Time;useOCP\DB\QueryBuilder\IExpressionBuilder;/** * Class ItemMapperTest * * @package OCA\News\Tests\Unit\Db */classItemMapperPaginatedTestextendsMapperTestUtility{/** @var ItemMapperV2 */private$class;/** * @covers \OCA\News\Db\ItemMapperV2::__construct */protectedfunctionsetUp():void{parent::setUp();$time=$this->getMockBuilder(Time::class)->getMock();$this->class=newItemMapperV2($this->db,$time);}publicfunctiontestFindAllItemsInvalid(){$this->expectException(ServiceValidationException::class);$this->expectExceptionMessage('Unexpected Feed type in call');$this->db->expects($this->once())->method('getQueryBuilder')->willReturn