diff options
Diffstat (limited to 'tests/Core/Command/Encryption/EncryptAllTest.php')
-rw-r--r-- | tests/Core/Command/Encryption/EncryptAllTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php index 9c9818475f5..778d51fd8b8 100644 --- a/tests/Core/Command/Encryption/EncryptAllTest.php +++ b/tests/Core/Command/Encryption/EncryptAllTest.php @@ -128,10 +128,10 @@ class EncryptAllTest extends TestCase { ]; } - /** - * @expectedException \Exception - */ + public function testExecuteException() { + $this->expectException(\Exception::class); + $command = new EncryptAll($this->encryptionManager, $this->appManager, $this->config, $this->questionHelper); $this->encryptionManager->expects($this->once())->method('isEnabled')->willReturn(false); $this->encryptionManager->expects($this->never())->method('getEncryptionModule'); |