-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47883 from nextcloud/fix/setup-checks
fix(setup-checks): Ensure URL with webroot works
- Loading branch information
Showing
8 changed files
with
311 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
apps/settings/tests/SetupChecks/CheckServerResponseTraitImplementation.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
namespace OCA\Settings\Tests\SetupChecks; | ||
|
||
use OCA\Settings\SetupChecks\CheckServerResponseTrait; | ||
use OCP\Http\Client\IClientService; | ||
use OCP\IConfig; | ||
use OCP\IL10N; | ||
use OCP\IURLGenerator; | ||
use Psr\Log\LoggerInterface; | ||
|
||
/** | ||
* Dummy implementation for CheckServerResponseTraitTest | ||
*/ | ||
class CheckServerResponseTraitImplementation { | ||
|
||
use CheckServerResponseTrait { | ||
CheckServerResponseTrait::getRequestOptions as public; | ||
CheckServerResponseTrait::runHEAD as public; | ||
CheckServerResponseTrait::runRequest as public; | ||
CheckServerResponseTrait::normalizeUrl as public; | ||
CheckServerResponseTrait::getTestUrls as public; | ||
} | ||
|
||
public function __construct( | ||
protected IL10N $l10n, | ||
protected IConfig $config, | ||
protected IURLGenerator $urlGenerator, | ||
protected IClientService $clientService, | ||
protected LoggerInterface $logger, | ||
) { | ||
} | ||
|
||
} |
Oops, something went wrong.