Fix unit tests

Regression caused by https://github.com/owncloud/core/pull/16721

Failed the unit tests as per https://ci.owncloud.org/job/server-master-linux/database=sqlite,label=SLAVE/1994/testReport/junit/(root)/Test_Encryption_ManagerTest/testGetEncryptionModuleUnknown/:
```
Test\Encryption\ManagerTest::testGetEncryptionModuleUnknown
Failed asserting that exception message 'Module with id: unknown does not exist.' contains 'Module with id: unknown does not exists.'
```
This commit is contained in:
Lukas Reschke 2015-06-03 17:07:30 +02:00
parent 5b52670a95
commit bf07eb45e2
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class ManagerTest extends TestCase {
/** /**
* @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException * @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException
* @expectedExceptionMessage Module with id: unknown does not exists. * @expectedExceptionMessage Module with id: unknown does not exist.
*/ */
public function testGetEncryptionModuleUnknown() { public function testGetEncryptionModuleUnknown() {
$this->config->expects($this->any())->method('getAppValue')->willReturn(true); $this->config->expects($this->any())->method('getAppValue')->willReturn(true);
@ -195,7 +195,7 @@ class ManagerTest extends TestCase {
// //
// /** // /**
// * @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException // * @expectedException \OC\Encryption\Exceptions\ModuleDoesNotExistsException
// * @expectedExceptionMessage Module with id: unknown does not exists. // * @expectedExceptionMessage Module with id: unknown does not exist.
// */ // */
// public function testGetEncryptionModuleUnknown() { // public function testGetEncryptionModuleUnknown() {
// $config = $this->getMock('\OCP\IConfig'); // $config = $this->getMock('\OCP\IConfig');