diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
commit | 42d69a95f3276a2d6089ca68f635c4e2f6aa7a23 (patch) | |
tree | 6a17fd7998f291e6dec1d996c1e7c724b92b8e58 /tests/unit/utility/UpdaterTest.php | |
parent | 0e6598b0734fb927109f745d9c0f3a8605a30ca5 (diff) |
convert tabs indention to indention with 4 spaces because of mixing of both variants in code and better readability on github and websites because you cant set the indention width there and 8 spaces will be used for a tab
Diffstat (limited to 'tests/unit/utility/UpdaterTest.php')
-rw-r--r-- | tests/unit/utility/UpdaterTest.php | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/tests/unit/utility/UpdaterTest.php b/tests/unit/utility/UpdaterTest.php index 1d61d65bb..edca29f67 100644 --- a/tests/unit/utility/UpdaterTest.php +++ b/tests/unit/utility/UpdaterTest.php @@ -16,47 +16,47 @@ 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(); - } + 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 |