diff --git a/tests/acceptance/TestHelpers/UploadHelper.php b/tests/acceptance/TestHelpers/UploadHelper.php index 25df43db5..52fe8fef9 100644 --- a/tests/acceptance/TestHelpers/UploadHelper.php +++ b/tests/acceptance/TestHelpers/UploadHelper.php @@ -33,6 +33,7 @@ class UploadHelper extends Assert { /** * * @param string|null $baseUrl URL of OpenCloud + * @param string|null $user * @param string|null $password * @param string|null $source * @param string|null $destination diff --git a/tests/acceptance/bootstrap/FeatureContext.php b/tests/acceptance/bootstrap/FeatureContext.php index 5f6d51180..91dc6be86 100644 --- a/tests/acceptance/bootstrap/FeatureContext.php +++ b/tests/acceptance/bootstrap/FeatureContext.php @@ -750,7 +750,9 @@ class FeatureContext extends BehatVariablesContext { */ public function getStorageUsersRoot(): string { $ocDataPath = getenv("OC_BASE_DATA_PATH") ? getenv("OC_BASE_DATA_PATH") : getenv("HOME") . '/.opencloud'; - return getenv("STORAGE_USERS_DECOMPOSED_ROOT") ? getenv("STORAGE_USERS_DECOMPOSED_ROOT") : $ocDataPath . "/storage/users"; + return getenv("STORAGE_USERS_DECOMPOSED_ROOT") + ? getenv("STORAGE_USERS_DECOMPOSED_ROOT") + : $ocDataPath . "/storage/users"; } /** diff --git a/tests/acceptance/bootstrap/OCSContext.php b/tests/acceptance/bootstrap/OCSContext.php index ae841b362..4189f2f00 100644 --- a/tests/acceptance/bootstrap/OCSContext.php +++ b/tests/acceptance/bootstrap/OCSContext.php @@ -192,7 +192,7 @@ class OCSContext implements Context { ) ); } - + /** * @Then /^the OCS status code should be "([^"]*)"$/ * diff --git a/tests/acceptance/bootstrap/OcConfigContext.php b/tests/acceptance/bootstrap/OcConfigContext.php index a41df2c0b..84d8cad5c 100644 --- a/tests/acceptance/bootstrap/OcConfigContext.php +++ b/tests/acceptance/bootstrap/OcConfigContext.php @@ -159,7 +159,7 @@ class OcConfigContext implements Context { } else { $path = \realpath(\dirname(__FILE__) . "/../../" . $path); } - + $response = OcConfigHelper::reConfigureOc( [ $configVariable => $path diff --git a/tests/acceptance/bootstrap/SearchContext.php b/tests/acceptance/bootstrap/SearchContext.php index e0373accd..3c75634ad 100644 --- a/tests/acceptance/bootstrap/SearchContext.php +++ b/tests/acceptance/bootstrap/SearchContext.php @@ -182,10 +182,10 @@ class SearchContext implements Context { $property['value'], $user ); - if (is_object($fileResult)) { + if (\is_object($fileResult)) { $fileResultProperty = $fileResult->xpath("d:propstat//" . $property['name']); } else { - throw new Exception("Expected fileResult to be an object, but found " . gettype($fileResult)); + throw new Exception("Expected fileResult to be an object, but found " . \gettype($fileResult)); } if ($fileResultProperty) { Assert::assertMatchesRegularExpression( diff --git a/tests/acceptance/bootstrap/ShareesContext.php b/tests/acceptance/bootstrap/ShareesContext.php index c8ba94025..2f8b18401 100644 --- a/tests/acceptance/bootstrap/ShareesContext.php +++ b/tests/acceptance/bootstrap/ShareesContext.php @@ -37,7 +37,6 @@ class ShareesContext implements Context { private FeatureContext $featureContext; private OCSContext $ocsContext; - /** * @When /^user "([^"]*)" gets the sharees using the sharing API with parameters$/ * diff --git a/tests/acceptance/bootstrap/Sharing.php b/tests/acceptance/bootstrap/Sharing.php index a7868ad90..6592cecb2 100755 --- a/tests/acceptance/bootstrap/Sharing.php +++ b/tests/acceptance/bootstrap/Sharing.php @@ -1654,7 +1654,6 @@ trait Sharing { $this->setResponse($this->getAllShares($user, "?path=$path")); } - /** * @Then /^the last share_id should be included in the response/ * diff --git a/tests/acceptance/features/apiGraph/getApplications.feature b/tests/acceptance/features/apiGraph/getApplications.feature index 1c9b2f268..dd675f3f6 100644 --- a/tests/acceptance/features/apiGraph/getApplications.feature +++ b/tests/acceptance/features/apiGraph/getApplications.feature @@ -6,6 +6,7 @@ Feature: get applications Background: Given user "Alice" has been created with default attributes + Scenario Outline: admin user lists all the groups Given the administrator has assigned the role "" to user "Alice" using the Graph API When user "Alice" gets all applications using the Graph API diff --git a/tests/acceptance/features/apiNotification/emailNotification.feature b/tests/acceptance/features/apiNotification/emailNotification.feature index aeb6c66fe..774345a0e 100644 --- a/tests/acceptance/features/apiNotification/emailNotification.feature +++ b/tests/acceptance/features/apiNotification/emailNotification.feature @@ -146,7 +146,7 @@ Feature: Email notification Zum Ansehen hier klicken: %base_url%/files/shares/with-me """ - @issue-183 + @issue-183 Scenario: group members get an email notification in their respective languages when someone shares a space with the group Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Carol" has been created with default attributes