1
0
mirror of https://github.com/owncloud/ocis.git synced 2025-04-17 12:37:07 +03:00

reorganize test folders within the acceptance directory

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899 2024-08-27 14:23:28 +05:45
parent 90f66d707d
commit d8d7b700cd
No known key found for this signature in database
GPG Key ID: DEA6868D99D4D475
51 changed files with 13 additions and 13 deletions

View File

@ -14,8 +14,8 @@ exclude_paths:
- 'accounts/rollup.config.js'
- 'deployments/**'
- 'tests/acceptance/expected-failures-*.md'
- 'tests/acceptance/features/bootstrap/**'
- 'tests/TestHelpers/**'
- 'tests/acceptance/bootstrap/**'
- 'tests/acceptance/TestHelpers/**'
- 'tests/acceptance/run.sh'
- 'vendor/**/*'
- 'tests/ociswrapper/vendor/**'

View File

@ -336,7 +336,7 @@ ci-format: $(BUILDIFIER)
.PHONY: test-php-style
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance tests/TestHelpers
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance tests/acceptance/TestHelpers
.PHONY: test-php-style-fix
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor

View File

@ -33,7 +33,7 @@ class HttpLogger {
* @return string
*/
public static function getLogDir(): string {
return __DIR__ . '/../acceptance/logs';
return __DIR__ . '/../logs';
}
/**

View File

@ -2453,7 +2453,7 @@ class FeatureContext extends BehatVariablesContext {
* @return string
*/
public function acceptanceTestsDirLocation(): string {
return \dirname(__FILE__) . "/../../";
return \dirname(__FILE__) . "/../";
}
/**
@ -2857,9 +2857,9 @@ class FeatureContext extends BehatVariablesContext {
public static function isExpectedToFail(string $scenarioLine): bool {
$expectedFailFile = \getenv('EXPECTED_FAILURES_FILE');
if (!$expectedFailFile) {
$expectedFailFile = __DIR__ . '/../../expected-failures-localAPI-on-OCIS-storage.md';
$expectedFailFile = __DIR__ . '/../expected-failures-localAPI-on-OCIS-storage.md';
if (\strpos($scenarioLine, "coreApi") === 0) {
$expectedFailFile = __DIR__ . '/../../expected-failures-API-on-OCIS-storage.md';
$expectedFailFile = __DIR__ . '/../expected-failures-API-on-OCIS-storage.md';
}
}

View File

@ -613,7 +613,7 @@ class OCSContext implements Context {
public function getActualStatusMessage(string $statusMessage, ?string $language = null):string {
if ($language !== null) {
$multiLingualMessage = \json_decode(
\file_get_contents(__DIR__ . "/../../fixtures/multiLanguageErrors.json"),
\file_get_contents(__DIR__ . "/../fixtures/multiLanguageErrors.json"),
true
);

View File

@ -85,7 +85,7 @@ class OcisConfigContext implements Context {
* @throws GuzzleException
*/
public function theConfigHasBeenSetPathTo(string $configVariable, string $path): void {
$path = \dirname(__FILE__) . "/../../../" . $path;
$path = \dirname(__FILE__) . "/../../" . $path;
$response = OcisConfigHelper::reConfigureOcis(
[
$configVariable => $path

View File

@ -3939,7 +3939,7 @@ trait WebDav {
* @throws Exception
*/
public function theDownloadedPreviewContentShouldMatchWithFixturesPreviewContentFor(string $filename):void {
$expectedPreview = \file_get_contents(__DIR__ . "/../../fixtures/" . $filename);
$expectedPreview = \file_get_contents(__DIR__ . "/../fixtures/" . $filename);
Assert::assertEquals($expectedPreview, $this->responseBodyContent);
}

View File

@ -25,7 +25,7 @@ use Composer\Autoload\ClassLoader;
$classLoader = new ClassLoader();
$classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../../../TestHelpers", true);
$classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../TestHelpers", true);
$classLoader->register();

View File

@ -1,6 +1,6 @@
default:
autoload:
"": "%paths.base%/../features/bootstrap"
"": "%paths.base%/../bootstrap"
suites:
coreApiMain:
paths:

View File

@ -1,6 +1,6 @@
default:
autoload:
"": "%paths.base%/../features/bootstrap"
"": "%paths.base%/../bootstrap"
suites:
apiAccountsHashDifficulty: