diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index f59855dd4d153c64a4b42260ad3ac0a8e93071fa..6d215d401561dda9e3bf61b8069d60e2ef0139c6 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -202,26 +202,4 @@ class AddressHandlerTest extends \Test\TestCase {
 			['httpserver.com', false],
 		];
 	}
-
-	/**
-	 * @dataProvider dataTestFixRemoteUrl
-	 *
-	 * @param string $url
-	 * @param string $expected
-	 */
-	public function testFixRemoteUrl($url, $expected) {
-		$this->assertSame($expected,
-			$this->invokePrivate($this->addressHandler, 'fixRemoteURL', [$url])
-		);
-	}
-
-	public function dataTestFixRemoteUrl() {
-		return [
-			['http://localhost', 'http://localhost'],
-			['http://localhost/', 'http://localhost'],
-			['http://localhost/index.php', 'http://localhost'],
-			['http://localhost/index.php/s/AShareToken', 'http://localhost'],
-		];
-	}
-
 }