summaryrefslogtreecommitdiffstats
path: root/tests/unit/utility/UpdaterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/utility/UpdaterTest.php')
-rw-r--r--tests/unit/utility/UpdaterTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/unit/utility/UpdaterTest.php b/tests/unit/utility/UpdaterTest.php
index 8a900d15e..2e6b03351 100644
--- a/tests/unit/utility/UpdaterTest.php
+++ b/tests/unit/utility/UpdaterTest.php
@@ -58,17 +58,21 @@ class UpdaterTest extends \PHPUnit_Framework_TestCase {
$this->itemBusinessLayer);
}
- public function testCleanUp() {
+ public function testBeforeUpdate() {
$this->folderBusinessLayer->expects($this->once())
->method('purgeDeleted');
$this->feedBusinessLayer->expects($this->once())
->method('purgeDeleted');
+ $this->updater->beforeUpdate();
+ }
+
+
+ public function testAfterUpdate() {
$this->itemBusinessLayer->expects($this->once())
->method('autoPurgeOld');
- $this->updater->cleanUp();
+ $this->updater->afterUpdate();
}
-
public function testUpdate() {
$this->feedBusinessLayer->expects($this->once())
->method('updateAll');