diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-09-21 15:12:00 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-27 18:43:53 +0200 |
commit | da0cea404d3ec2ac1c3f08e3d3791b02b3b958db (patch) | |
tree | 97460f0334cd22db70d754777680f35b04821e31 /tests/lib/UpdaterTest.php | |
parent | 6ca8ce62288aa5b181f97c45ad62c35976dbb65f (diff) | |
download | nextcloud-server-da0cea404d3ec2ac1c3f08e3d3791b02b3b958db.tar.gz nextcloud-server-da0cea404d3ec2ac1c3f08e3d3791b02b3b958db.zip |
Kill update simulation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/UpdaterTest.php')
-rw-r--r-- | tests/lib/UpdaterTest.php | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/tests/lib/UpdaterTest.php b/tests/lib/UpdaterTest.php index 0c67a3f7433..80c7c28cd68 100644 --- a/tests/lib/UpdaterTest.php +++ b/tests/lib/UpdaterTest.php @@ -27,25 +27,25 @@ use OCP\IConfig; use OCP\ILogger; use OC\IntegrityCheck\Checker; -class UpdaterTest extends \Test\TestCase { - /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */ +class UpdaterTest extends TestCase { + /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */ private $config; - /** @var ILogger */ + /** @var ILogger | \PHPUnit_Framework_MockObject_MockObject */ private $logger; /** @var Updater */ private $updater; - /** @var Checker */ + /** @var Checker | \PHPUnit_Framework_MockObject_MockObject */ private $checker; public function setUp() { parent::setUp(); - $this->config = $this->getMockBuilder('\\OCP\\IConfig') + $this->config = $this->getMockBuilder(IConfig::class) ->disableOriginalConstructor() ->getMock(); - $this->logger = $this->getMockBuilder('\\OCP\\ILogger') + $this->logger = $this->getMockBuilder(ILogger::class) ->disableOriginalConstructor() ->getMock(); - $this->checker = $this->getMockBuilder('\OC\IntegrityCheck\Checker') + $this->checker = $this->getMockBuilder(Checker::class) ->disableOriginalConstructor() ->getMock(); @@ -169,20 +169,6 @@ class UpdaterTest extends \Test\TestCase { $this->assertSame($result, $this->updater->isUpgradePossible($oldVersion, $newVersion, $allowedVersion)); } - public function testSetSimulateStepEnabled() { - $this->updater->setSimulateStepEnabled(true); - $this->assertSame(true, $this->invokePrivate($this->updater, 'simulateStepEnabled')); - $this->updater->setSimulateStepEnabled(false); - $this->assertSame(false, $this->invokePrivate($this->updater, 'simulateStepEnabled')); - } - - public function testSetUpdateStepEnabled() { - $this->updater->setUpdateStepEnabled(true); - $this->assertSame(true, $this->invokePrivate($this->updater, 'updateStepEnabled')); - $this->updater->setUpdateStepEnabled(false); - $this->assertSame(false, $this->invokePrivate($this->updater, 'updateStepEnabled')); - } - public function testSetSkip3rdPartyAppsDisable() { $this->updater->setSkip3rdPartyAppsDisable(true); $this->assertSame(true, $this->invokePrivate($this->updater, 'skip3rdPartyAppsDisable')); |