diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-07-23 21:24:54 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-07-23 21:24:54 +0200 |
commit | 004fcbbcc7609ca83807f2e38967ef54f469bf72 (patch) | |
tree | 49eb99b4ea92b2045793fc567f719b31ec7f9042 /tests/unit/utility/UpdaterTest.php | |
parent | 60abc0ed4438c9b6fda245b0dc33cb483bc2aeaf (diff) |
Move to new directory structure
Diffstat (limited to 'tests/unit/utility/UpdaterTest.php')
-rw-r--r-- | tests/unit/utility/UpdaterTest.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/tests/unit/utility/UpdaterTest.php b/tests/unit/utility/UpdaterTest.php deleted file mode 100644 index edca29f67..000000000 --- a/tests/unit/utility/UpdaterTest.php +++ /dev/null @@ -1,62 +0,0 @@ -<?php -/** - * ownCloud - 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 Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 - */ - -namespace OCA\News\Utility; - - -class UpdaterTest extends \PHPUnit_Framework_TestCase { - - private $folderService; - private $feedService; - private $itemService; - private $updater; - - protected function setUp() { - $this->folderService = $this->getMockBuilder( - '\OCA\News\Service\FolderService') - ->disableOriginalConstructor() - ->getMock(); - $this->feedService = $this->getMockBuilder( - '\OCA\News\Service\FeedService') - ->disableOriginalConstructor() - ->getMock(); - $this->itemService = $this->getMockBuilder( - '\OCA\News\Service\ItemService') - ->disableOriginalConstructor() - ->getMock(); - $this->updater = new Updater($this->folderService, - $this->feedService, - $this->itemService); - } - - public function testBeforeUpdate() { - $this->folderService->expects($this->once()) - ->method('purgeDeleted'); - $this->feedService->expects($this->once()) - ->method('purgeDeleted'); - $this->updater->beforeUpdate(); - } - - - public function testAfterUpdate() { - $this->itemService->expects($this->once()) - ->method('autoPurgeOld'); - $this->updater->afterUpdate(); - } - - public function testUpdate() { - $this->feedService->expects($this->once()) - ->method('updateAll'); - $this->updater->update(); - } -}
\ No newline at end of file |