aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Command/Integrity/SignCoreTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Command/Integrity/SignCoreTest.php')
-rw-r--r--tests/lib/Command/Integrity/SignCoreTest.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/lib/Command/Integrity/SignCoreTest.php b/tests/lib/Command/Integrity/SignCoreTest.php
index 66227322dda..843084eebd9 100644
--- a/tests/lib/Command/Integrity/SignCoreTest.php
+++ b/tests/lib/Command/Integrity/SignCoreTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
@@ -48,7 +49,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('--privateKey, --certificate and --path are required.', $message);
});
@@ -71,7 +72,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('--privateKey, --certificate and --path are required.', $message);
});
@@ -100,7 +101,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('Private key "privateKey" does not exists.', $message);
});
@@ -131,7 +132,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('Certificate "certificate" does not exists.', $message);
});
@@ -167,7 +168,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('Error: My exception message', $message);
});
@@ -202,7 +203,7 @@ class SignCoreTest extends TestCase {
$outputInterface
->expects($this->any())
->method('writeln')
- ->willReturnCallback(function (string $message) {
+ ->willReturnCallback(function (string $message): void {
$this->assertEquals('Successfully signed "core"', $message);
});