diff --git a/tests/src/ExistingSite/FetchClientUrlTestDISABLED.php b/tests/src/ExistingSite/FetchClientUrlTestDISABLED.php new file mode 100644 index 00000000..8dc1014e --- /dev/null +++ b/tests/src/ExistingSite/FetchClientUrlTestDISABLED.php @@ -0,0 +1,39 @@ +getWopiClientURL(); + // The protocol, domain and port are known when this test runs in the + // docker-compose setup. + $this->assertMatchesRegularExpression('@^http://collabora\.test:9980/browser/[0-9a-f]+/cool\.html\?$@', $client_url); + $this->assertSame('0: Success', $cool_request->errorString()); + } + + /** + * Tests error behavior when fetching client url. + */ + public function testFetchClientUrlError(): void { + $cool_request = new CoolRequest(); + $client_url = $cool_request->getWopiClientURL(); + // The protocol, domain and port are known when this test runs in the + // docker-compose setup. + $this->assertMatchesRegularExpression('@^http://collabora\.test:9980/browser/[0-9a-f]+/cool\.html\?$@', $client_url); + $this->assertSame('0: Success', $cool_request->errorString()); + } + +}