aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests/AddressHandlerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/tests/AddressHandlerTest.php')
-rw-r--r--apps/federatedfilesharing/tests/AddressHandlerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index 3fb2a938a66..e235314e008 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -96,7 +96,7 @@ class AddressHandlerTest extends \Test\TestCase {
* @param string $expectedUser
* @param string $expectedUrl
*/
- public function testSplitUserRemote($remote, $expectedUser, $expectedUrl) {
+ public function testSplitUserRemote($remote, $expectedUser, $expectedUrl): void {
$this->contactsManager->expects($this->any())
->method('search')
->willReturn([]);
@@ -129,7 +129,7 @@ class AddressHandlerTest extends \Test\TestCase {
*
* @param string $id
*/
- public function testSplitUserRemoteError($id) {
+ public function testSplitUserRemoteError($id): void {
$this->expectException(\OCP\HintException::class);
$this->addressHandler->splitUserRemote($id);
@@ -144,7 +144,7 @@ class AddressHandlerTest extends \Test\TestCase {
* @param string $server2
* @param bool $expected
*/
- public function testCompareAddresses($user1, $server1, $user2, $server2, $expected) {
+ public function testCompareAddresses($user1, $server1, $user2, $server2, $expected): void {
$this->assertSame($expected,
$this->addressHandler->compareAddresses($user1, $server1, $user2, $server2)
);
@@ -176,7 +176,7 @@ class AddressHandlerTest extends \Test\TestCase {
* @param string $url
* @param string $expectedResult
*/
- public function testRemoveProtocolFromUrl($url, $expectedResult) {
+ public function testRemoveProtocolFromUrl($url, $expectedResult): void {
$result = $this->addressHandler->removeProtocolFromUrl($url);
$this->assertSame($expectedResult, $result);
}
@@ -195,7 +195,7 @@ class AddressHandlerTest extends \Test\TestCase {
* @param string $url
* @param bool $expectedResult
*/
- public function testUrlContainProtocol($url, $expectedResult) {
+ public function testUrlContainProtocol($url, $expectedResult): void {
$result = $this->addressHandler->urlContainProtocol($url);
$this->assertSame($expectedResult, $result);
}