|
|
|
@ -153,14 +153,24 @@ class SetupTest extends \Test\TestCase { |
|
|
|
} |
|
|
|
|
|
|
|
\OC::$CLI = $cliState; |
|
|
|
$this->assertEquals($webRoot, $expected); |
|
|
|
$this->assertSame($webRoot, $expected); |
|
|
|
} |
|
|
|
|
|
|
|
public function findWebRootProvider(): array { |
|
|
|
return [ |
|
|
|
'https://www.example.com/nextcloud/' => ['https://www.example.com/nextcloud/', '/nextcloud'], |
|
|
|
'https://www.example.com/nextcloud' => ['https://www.example.com/nextcloud', '/nextcloud'], |
|
|
|
'https://www.example.com/' => ['https://www.example.com/', ''], |
|
|
|
'https://www.example.com' => ['https://www.example.com', false], |
|
|
|
'https://www.example.com' => ['https://www.example.com', ''], |
|
|
|
'https://nctest13pgsql.lan/test123/' => ['https://nctest13pgsql.lan/test123/', '/test123'], |
|
|
|
'https://nctest13pgsql.lan/test123' => ['https://nctest13pgsql.lan/test123', '/test123'], |
|
|
|
'https://nctest13pgsql.lan/' => ['https://nctest13pgsql.lan/', ''], |
|
|
|
'https://nctest13pgsql.lan' => ['https://nctest13pgsql.lan', ''], |
|
|
|
'https://192.168.10.10/nc/' => ['https://192.168.10.10/nc/', '/nc'], |
|
|
|
'https://192.168.10.10/nc' => ['https://192.168.10.10/nc', '/nc'], |
|
|
|
'https://192.168.10.10/' => ['https://192.168.10.10/', ''], |
|
|
|
'https://192.168.10.10' => ['https://192.168.10.10', ''], |
|
|
|
'invalid' => ['invalid', false], |
|
|
|
'empty' => ['', false], |
|
|
|
]; |
|
|
|
} |
|
|
|
|