aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-01-20 11:45:08 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-01-20 11:45:08 +0100
commitf5c361cf44739058b79f322576a1bad2d8c142d9 (patch)
treea22217c6995751023112832d191d213e494e2fbc /tests/acceptance/features
parent37bb33c5799b834dfef3fb73936bd0e5a4773fb8 (diff)
downloadnextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.tar.gz
nextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.zip
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/acceptance/features')
-rw-r--r--tests/acceptance/features/bootstrap/AppNavigationContext.php18
-rw-r--r--tests/acceptance/features/bootstrap/AppSettingsContext.php6
-rw-r--r--tests/acceptance/features/bootstrap/AppsManagementContext.php6
-rw-r--r--tests/acceptance/features/bootstrap/CommentsAppContext.php10
-rw-r--r--tests/acceptance/features/bootstrap/ContactsMenuContext.php16
-rw-r--r--tests/acceptance/features/bootstrap/DialogContext.php12
-rw-r--r--tests/acceptance/features/bootstrap/FileListAncestorSetter.php1
-rw-r--r--tests/acceptance/features/bootstrap/FileListContext.php13
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppContext.php40
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppSharingContext.php68
-rw-r--r--tests/acceptance/features/bootstrap/LoginPageContext.php8
-rw-r--r--tests/acceptance/features/bootstrap/PublicShareContext.php38
-rw-r--r--tests/acceptance/features/bootstrap/SearchContext.php4
-rw-r--r--tests/acceptance/features/bootstrap/SettingsContext.php12
-rw-r--r--tests/acceptance/features/bootstrap/SettingsMenuContext.php6
-rw-r--r--tests/acceptance/features/bootstrap/ToastContext.php2
-rw-r--r--tests/acceptance/features/bootstrap/UsersSettingsContext.php30
-rw-r--r--tests/acceptance/features/bootstrap/WaitFor.php1
-rw-r--r--tests/acceptance/features/core/Actor.php1
-rw-r--r--tests/acceptance/features/core/ActorAware.php1
-rw-r--r--tests/acceptance/features/core/ActorAwareInterface.php1
-rw-r--r--tests/acceptance/features/core/ActorContext.php1
-rw-r--r--tests/acceptance/features/core/ElementFinder.php1
-rw-r--r--tests/acceptance/features/core/ElementWrapper.php1
-rw-r--r--tests/acceptance/features/core/Locator.php4
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerContext.php1
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerHelper.php1
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php1
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php1
-rw-r--r--tests/acceptance/features/core/NoSuchElementException.php1
-rw-r--r--tests/acceptance/features/core/Utils.php1
31 files changed, 144 insertions, 163 deletions
diff --git a/tests/acceptance/features/bootstrap/AppNavigationContext.php b/tests/acceptance/features/bootstrap/AppNavigationContext.php
index cba56856bfa..49d664e2333 100644
--- a/tests/acceptance/features/bootstrap/AppNavigationContext.php
+++ b/tests/acceptance/features/bootstrap/AppNavigationContext.php
@@ -114,9 +114,9 @@ class AppNavigationContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSectionIsShown($section) {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::appNavigationSectionItemFor($section),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::appNavigationSectionItemFor($section),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The section $section in the app navigation is not shown yet after $timeout seconds");
}
}
@@ -126,9 +126,9 @@ class AppNavigationContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSectionIsNotShown($section) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::appNavigationSectionItemFor($section),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::appNavigationSectionItemFor($section),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The section $section in the app navigation is still shown after $timeout seconds");
}
}
@@ -145,9 +145,9 @@ class AppNavigationContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSectionDoesNotHaveACount($section) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::counterForTheSection($section),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::counterForTheSection($section),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The counter for section $section is still shown after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/AppSettingsContext.php b/tests/acceptance/features/bootstrap/AppSettingsContext.php
index 210e907a9bc..c8033a46f2d 100644
--- a/tests/acceptance/features/bootstrap/AppSettingsContext.php
+++ b/tests/acceptance/features/bootstrap/AppSettingsContext.php
@@ -90,9 +90,9 @@ class AppSettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSettingsAreOpened() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::appSettingsContent(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::appSettingsContent(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The app settings are not open yet after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/AppsManagementContext.php b/tests/acceptance/features/bootstrap/AppsManagementContext.php
index 908754163d7..7b06b77d117 100644
--- a/tests/acceptance/features/bootstrap/AppsManagementContext.php
+++ b/tests/acceptance/features/bootstrap/AppsManagementContext.php
@@ -200,9 +200,9 @@ class AppsManagementContext implements Context, ActorAwareInterface {
*/
public function iSeeThatThereSomeAppsListedFromTheAppStore() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::appEntries(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::appEntries(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The apps from the app store were not shown yet after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/CommentsAppContext.php b/tests/acceptance/features/bootstrap/CommentsAppContext.php
index 577b14b7e72..b193ba9fb33 100644
--- a/tests/acceptance/features/bootstrap/CommentsAppContext.php
+++ b/tests/acceptance/features/bootstrap/CommentsAppContext.php
@@ -85,9 +85,9 @@ class CommentsAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatThereAreNoComments() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::emptyContent(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::emptyContent(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The no comments message is not visible yet after $timeout seconds");
}
}
@@ -97,7 +97,7 @@ class CommentsAppContext implements Context, ActorAwareInterface {
*/
public function iSeeACommentWithAsMessage($commentText) {
Assert::assertTrue(
- $this->actor->find(self::commentWithText($commentText), 10)->isVisible());
+ $this->actor->find(self::commentWithText($commentText), 10)->isVisible());
}
/**
@@ -106,7 +106,7 @@ class CommentsAppContext implements Context, ActorAwareInterface {
public function iSeeThatThereIsNoCommentWithAsMessage($commentText) {
try {
Assert::assertFalse(
- $this->actor->find(self::commentWithText($commentText))->isVisible());
+ $this->actor->find(self::commentWithText($commentText))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
index b22f33a3c55..72c33410b28 100644
--- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
@@ -89,7 +89,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheContactsMenuIsShown() {
Assert::assertTrue(
- $this->actor->find(self::contactsMenu(), 10)->isVisible());
+ $this->actor->find(self::contactsMenu(), 10)->isVisible());
}
/**
@@ -97,7 +97,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheContactsMenuSearchInputIsShown() {
Assert::assertTrue(
- $this->actor->find(self::contactsMenuSearchInput(), 10)->isVisible());
+ $this->actor->find(self::contactsMenuSearchInput(), 10)->isVisible());
}
/**
@@ -105,7 +105,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheNoResultsMessageInTheContactsMenuIsShown() {
Assert::assertTrue(
- $this->actor->find(self::noResultsMessage(), 10)->isVisible());
+ $this->actor->find(self::noResultsMessage(), 10)->isVisible());
}
/**
@@ -113,7 +113,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheContactInTheContactsMenuIsShown($contactName) {
Assert::assertTrue(
- $this->actor->find(self::menuItemFor($contactName), 10)->isVisible());
+ $this->actor->find(self::menuItemFor($contactName), 10)->isVisible());
}
/**
@@ -124,7 +124,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
try {
Assert::assertFalse(
- $this->actor->find(self::menuItemFor($contactName))->isVisible());
+ $this->actor->find(self::menuItemFor($contactName))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
@@ -136,9 +136,9 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
$this->iSeeThatThecontactsMenuIsShown();
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::menuItemFor($contactName),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::menuItemFor($contactName),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The $contactName contact in Contacts menu is still shown after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/DialogContext.php b/tests/acceptance/features/bootstrap/DialogContext.php
index dea9f434bab..3deea2f5ebf 100644
--- a/tests/acceptance/features/bootstrap/DialogContext.php
+++ b/tests/acceptance/features/bootstrap/DialogContext.php
@@ -56,9 +56,9 @@ class DialogContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheConfirmationDialogIsShown() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::theDialog(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::theDialog(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The confirmation dialog was not shown yet after $timeout seconds");
}
}
@@ -68,9 +68,9 @@ class DialogContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheConfirmationDialogIsNotShown() {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::theDialog(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::theDialog(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The confirmation dialog is still shown after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/FileListAncestorSetter.php b/tests/acceptance/features/bootstrap/FileListAncestorSetter.php
index af8534f012c..b87d1d7dee3 100644
--- a/tests/acceptance/features/bootstrap/FileListAncestorSetter.php
+++ b/tests/acceptance/features/bootstrap/FileListAncestorSetter.php
@@ -37,7 +37,6 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
* "setFileListAncestorForActor" when needed.
*/
trait FileListAncestorSetter {
-
/**
* @var FileListContext
*/
diff --git a/tests/acceptance/features/bootstrap/FileListContext.php b/tests/acceptance/features/bootstrap/FileListContext.php
index 12402c07cc0..501bad73c06 100644
--- a/tests/acceptance/features/bootstrap/FileListContext.php
+++ b/tests/acceptance/features/bootstrap/FileListContext.php
@@ -25,7 +25,6 @@ use Behat\Behat\Context\Context;
use PHPUnit\Framework\Assert;
class FileListContext implements Context, ActorAwareInterface {
-
/**
* @var Actor
*/
@@ -484,9 +483,9 @@ class FileListContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileListIsEventuallyLoaded() {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::mainWorkingIcon($this->fileListAncestor),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::mainWorkingIcon($this->fileListAncestor),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The main working icon for the file list is still shown after $timeout seconds");
}
}
@@ -522,9 +521,9 @@ class FileListContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileListDoesNotContainAFileNamed($fileName) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::rowForFile($this->fileListAncestor, $fileName),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::rowForFile($this->fileListAncestor, $fileName),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The file list still contains a file named $fileName after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php
index 124000f878d..b4b6e72e5b5 100644
--- a/tests/acceptance/features/bootstrap/FilesAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppContext.php
@@ -297,8 +297,8 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheFilesApp() {
Assert::assertStringStartsWith(
- $this->actor->locatePath("/apps/files/"),
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->locatePath("/apps/files/"),
+ $this->actor->getSession()->getCurrentUrl());
$this->setFileListAncestorForActor(self::currentSectionMainView(), $this->actor);
}
@@ -311,9 +311,9 @@ class FilesAppContext implements Context, ActorAwareInterface {
// waited for it to be visible instead of relying on the implicit wait
// made to find the element.
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::detailsView(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::detailsView(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The details view is not open yet after $timeout seconds");
}
}
@@ -323,9 +323,9 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheDetailsViewIsClosed() {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::detailsView(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::detailsView(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The details view is not closed yet after $timeout seconds");
}
}
@@ -335,7 +335,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileNameShownInTheDetailsViewIs($fileName) {
Assert::assertEquals(
- $this->actor->find(self::fileNameInDetailsView(), 10)->getText(), $fileName);
+ $this->actor->find(self::fileNameInDetailsView(), 10)->getText(), $fileName);
}
/**
@@ -343,7 +343,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsMarkedAsFavoriteInTheDetailsView() {
Assert::assertNotNull(
- $this->actor->find(self::favoritedStateIconInFileDetailsInDetailsView(), 10));
+ $this->actor->find(self::favoritedStateIconInFileDetailsInDetailsView(), 10));
}
/**
@@ -351,7 +351,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsNotMarkedAsFavoriteInTheDetailsView() {
Assert::assertNotNull(
- $this->actor->find(self::notFavoritedStateIconInFileDetailsInDetailsView(), 10));
+ $this->actor->find(self::notFavoritedStateIconInFileDetailsInDetailsView(), 10));
}
/**
@@ -359,7 +359,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheInputFieldForTagsInTheDetailsViewIsShown() {
Assert::assertTrue(
- $this->actor->find(self::inputFieldForTagsInDetailsView(), 10)->isVisible());
+ $this->actor->find(self::inputFieldForTagsInDetailsView(), 10)->isVisible());
}
/**
@@ -367,7 +367,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheInputFieldForTagsInTheDetailsViewContainsTheTag($tag) {
Assert::assertTrue(
- $this->actor->find(self::itemInInputFieldForTagsInDetailsViewForTag($tag), 10)->isVisible());
+ $this->actor->find(self::itemInInputFieldForTagsInDetailsViewForTag($tag), 10)->isVisible());
}
/**
@@ -378,7 +378,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
try {
Assert::assertFalse(
- $this->actor->find(self::itemInInputFieldForTagsInDetailsViewForTag($tag))->isVisible());
+ $this->actor->find(self::itemInInputFieldForTagsInDetailsViewForTag($tag))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
@@ -388,7 +388,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsChecked($tag) {
Assert::assertTrue(
- $this->actor->find(self::checkmarkInItemInDropdownForTag($tag), 10)->isVisible());
+ $this->actor->find(self::checkmarkInItemInDropdownForTag($tag), 10)->isVisible());
}
/**
@@ -396,10 +396,10 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsNotChecked($tag) {
Assert::assertTrue(
- $this->actor->find(self::itemInDropdownForTag($tag), 10)->isVisible());
+ $this->actor->find(self::itemInDropdownForTag($tag), 10)->isVisible());
Assert::assertFalse(
- $this->actor->find(self::checkmarkInItemInDropdownForTag($tag))->isVisible());
+ $this->actor->find(self::checkmarkInItemInDropdownForTag($tag))->isVisible());
}
/**
@@ -407,9 +407,9 @@ class FilesAppContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheTabInTheDetailsViewIsEventuallyLoaded($tabName) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::loadingIconForTabInDetailsViewNamed($tabName),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::loadingIconForTabInDetailsViewNamed($tabName),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The $tabName tab in the details view has not been loaded after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
index 95398423e3b..40c055ed06e 100644
--- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
@@ -378,9 +378,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// Close the share link menu if it is open to ensure that it does not
// cover the copy link button.
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkMenu($shareLinkMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkMenu($shareLinkMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
// It may not be possible to click on the menu button (due to the
// menu itself covering it), so "Enter" key is pressed instead.
$this->actor->find(self::shareLinkMenuButton(), 2)->getWrappedElement()->keyPress(13);
@@ -528,7 +528,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsSharedWithMeBy($sharedByName) {
Assert::assertEquals(
- $this->actor->find(self::sharedByLabel(), 10)->getText(), "Shared with you by $sharedByName");
+ $this->actor->find(self::sharedByLabel(), 10)->getText(), "Shared with you by $sharedByName");
}
/**
@@ -536,7 +536,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsSharedWith($sharedWithName) {
Assert::assertTrue(
- $this->actor->find(self::sharedWithRow($sharedWithName), 10)->isVisible());
+ $this->actor->find(self::sharedWithRow($sharedWithName), 10)->isVisible());
}
/**
@@ -544,9 +544,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsNotSharedWith($sharedWithName) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::sharedWithRow($sharedWithName),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::sharedWithRow($sharedWithName),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The shared with $sharedWithName row is still shown after $timeout seconds");
}
}
@@ -556,9 +556,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingTheFileIsNotAllowed() {
Assert::assertEquals(
- $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
Assert::assertEquals(
- $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("placeholder"), "Resharing is not allowed");
+ $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("placeholder"), "Resharing is not allowed");
}
/**
@@ -566,9 +566,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingTheFileByLinkIsNotAvailable() {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkAddNewButton(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkAddNewButton(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The add new share link button is still shown after $timeout seconds");
}
}
@@ -581,7 +581,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertEquals(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
}
/**
@@ -592,7 +592,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -603,7 +603,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -614,7 +614,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertEquals(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
}
/**
@@ -625,7 +625,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -636,7 +636,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -647,9 +647,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::canReshareCheckbox($sharedWithName, $shareWithMenuTriggerElement),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::canReshareCheckbox($sharedWithName, $shareWithMenuTriggerElement),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The resharing checkbox for $sharedWithName is still shown after $timeout seconds");
}
}
@@ -662,7 +662,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -673,7 +673,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -719,9 +719,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
}
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::disabledPasswordProtectField($shareLinkMenuTriggerElement),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::disabledPasswordProtectField($shareLinkMenuTriggerElement),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The password protect field is still disabled after $timeout seconds");
}
}
@@ -766,7 +766,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareLinkMenuTriggerElement = $this->actor->find(self::shareLinkMenuTrigger(), 10);
try {
Assert::assertFalse(
- $this->actor->find(self::passwordProtectByTalkCheckbox($shareLinkMenuTriggerElement))->isVisible());
+ $this->actor->find(self::passwordProtectByTalkCheckbox($shareLinkMenuTriggerElement))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
@@ -788,9 +788,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// case it is in the process of being hidden due to a previous action,
// in which case it is shown again.
if (WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkMenu($shareLinkMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkMenu($shareLinkMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
$this->actor->find(self::shareLinkMenuButton(), 10)->click();
}
}
@@ -803,9 +803,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// case it is in the process of being hidden due to a previous action,
// in which case it is shown again.
if (WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareWithMenu($shareWithName, $shareWithMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareWithMenu($shareWithName, $shareWithMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
$this->actor->find(self::shareWithMenuButton($shareWithName), 10)->click();
}
}
diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php
index 01ad34ba149..fc924bbff80 100644
--- a/tests/acceptance/features/bootstrap/LoginPageContext.php
+++ b/tests/acceptance/features/bootstrap/LoginPageContext.php
@@ -80,8 +80,8 @@ class LoginPageContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheLoginPage() {
Assert::assertStringStartsWith(
- $this->actor->locatePath("/login"),
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->locatePath("/login"),
+ $this->actor->getSession()->getCurrentUrl());
}
/**
@@ -89,7 +89,7 @@ class LoginPageContext implements Context, ActorAwareInterface {
*/
public function iSeeThatAWrongPasswordMessageIsShown() {
Assert::assertTrue(
- $this->actor->find(self::wrongPasswordMessage(), 10)->isVisible());
+ $this->actor->find(self::wrongPasswordMessage(), 10)->isVisible());
}
/**
@@ -97,7 +97,7 @@ class LoginPageContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheDisabledUserMessageIsShown() {
Assert::assertTrue(
- $this->actor->find(self::userDisabledMessage(), 10)->isVisible());
+ $this->actor->find(self::userDisabledMessage(), 10)->isVisible());
}
/**
diff --git a/tests/acceptance/features/bootstrap/PublicShareContext.php b/tests/acceptance/features/bootstrap/PublicShareContext.php
index d31d6541335..ce25afa792b 100644
--- a/tests/acceptance/features/bootstrap/PublicShareContext.php
+++ b/tests/acceptance/features/bootstrap/PublicShareContext.php
@@ -145,8 +145,8 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheAuthenticatePageForTheSharedLinkIWroteDown() {
Assert::assertEquals(
- $this->actor->getSharedNotebook()["shared link"] . "/authenticate/showShare",
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->getSharedNotebook()["shared link"] . "/authenticate/showShare",
+ $this->actor->getSession()->getCurrentUrl());
}
/**
@@ -154,8 +154,8 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheAuthenticatePageForTheDirectDownloadSharedLinkIWroteDown() {
Assert::assertEquals(
- $this->actor->getSharedNotebook()["shared link"] . "/authenticate/downloadShare",
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->getSharedNotebook()["shared link"] . "/authenticate/downloadShare",
+ $this->actor->getSession()->getCurrentUrl());
}
/**
@@ -163,8 +163,8 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheSharedLinkIWroteDown() {
Assert::assertEquals(
- $this->actor->getSharedNotebook()["shared link"],
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->getSharedNotebook()["shared link"],
+ $this->actor->getSession()->getCurrentUrl());
$this->setFileListAncestorForActor(null, $this->actor);
}
@@ -174,8 +174,8 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheCurrentPageIsTheDirectDownloadSharedLinkIWroteDown() {
Assert::assertEquals(
- $this->actor->getSharedNotebook()["shared link"] . "/download",
- $this->actor->getSession()->getCurrentUrl());
+ $this->actor->getSharedNotebook()["shared link"] . "/download",
+ $this->actor->getSession()->getCurrentUrl());
}
/**
@@ -183,7 +183,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatAWrongPasswordForTheSharedFileMessageIsShown() {
Assert::assertTrue(
- $this->actor->find(self::wrongPasswordMessage(), 10)->isVisible());
+ $this->actor->find(self::wrongPasswordMessage(), 10)->isVisible());
}
/**
@@ -194,7 +194,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
// the element could be found when it was no made visible yet due to the
// command not having been processed by the browser.
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor, self::shareMenu(), $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor, self::shareMenu(), $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The Share menu is not visible yet after $timeout seconds");
}
@@ -202,14 +202,14 @@ class PublicShareContext implements Context, ActorAwareInterface {
// download item should not be shown in the menu (although it will be in
// the DOM).
Assert::assertFalse(
- $this->actor->find(self::downloadItemInShareMenu())->isVisible(),
- "Download item in share menu is visible");
+ $this->actor->find(self::downloadItemInShareMenu())->isVisible(),
+ "Download item in share menu is visible");
Assert::assertTrue(
- $this->actor->find(self::directLinkItemInShareMenu())->isVisible(),
- "Direct link item in share menu is not visible");
+ $this->actor->find(self::directLinkItemInShareMenu())->isVisible(),
+ "Direct link item in share menu is not visible");
Assert::assertTrue(
- $this->actor->find(self::saveItemInShareMenu())->isVisible(),
- "Save item in share menu is not visible");
+ $this->actor->find(self::saveItemInShareMenu())->isVisible(),
+ "Save item in share menu is not visible");
}
/**
@@ -218,7 +218,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
public function iSeeThatTheShareMenuButtonIsNotShown() {
try {
Assert::assertFalse(
- $this->actor->find(self::shareMenuButton())->isVisible());
+ $this->actor->find(self::shareMenuButton())->isVisible());
} catch (NoSuchElementException $exception) {
}
}
@@ -235,7 +235,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheDownloadButtonIsShown() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor, self::downloadButton(), $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor, self::downloadButton(), $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The download button is not visible yet after $timeout seconds");
}
}
@@ -246,7 +246,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
public function iSeeThatTheDownloadButtonIsNotShown() {
try {
Assert::assertFalse(
- $this->actor->find(self::downloadButton())->isVisible());
+ $this->actor->find(self::downloadButton())->isVisible());
} catch (NoSuchElementException $exception) {
}
}
diff --git a/tests/acceptance/features/bootstrap/SearchContext.php b/tests/acceptance/features/bootstrap/SearchContext.php
index db7aeb90ffe..f776c078c68 100644
--- a/tests/acceptance/features/bootstrap/SearchContext.php
+++ b/tests/acceptance/features/bootstrap/SearchContext.php
@@ -101,7 +101,7 @@ class SearchContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSearchResultIs($number, $name) {
Assert::assertEquals(
- $name, $this->actor->find(self::searchResultName($number), 10)->getText());
+ $name, $this->actor->find(self::searchResultName($number), 10)->getText());
}
/**
@@ -109,6 +109,6 @@ class SearchContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSearchResultWasFoundIn($number, $path) {
Assert::assertEquals(
- $path, $this->actor->find(self::searchResultPath($number), 10)->getText());
+ $path, $this->actor->find(self::searchResultPath($number), 10)->getText());
}
}
diff --git a/tests/acceptance/features/bootstrap/SettingsContext.php b/tests/acceptance/features/bootstrap/SettingsContext.php
index 1e0eadd044a..ae1a559a360 100644
--- a/tests/acceptance/features/bootstrap/SettingsContext.php
+++ b/tests/acceptance/features/bootstrap/SettingsContext.php
@@ -182,7 +182,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatSharesAreAcceptedByDefault() {
Assert::assertTrue(
- $this->actor->find(self::acceptSharesByDefaultCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::acceptSharesByDefaultCheckboxInput(), 10)->isChecked());
}
/**
@@ -190,7 +190,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingIsEnabled() {
Assert::assertTrue(
- $this->actor->find(self::allowResharingCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::allowResharingCheckboxInput(), 10)->isChecked());
}
/**
@@ -198,7 +198,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingIsDisabled() {
Assert::assertFalse(
- $this->actor->find(self::allowResharingCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::allowResharingCheckboxInput(), 10)->isChecked());
}
/**
@@ -206,7 +206,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatUsernameAutocompletionIsRestrictedToGroups() {
Assert::assertTrue(
- $this->actor->find(self::restrictUsernameAutocompletionToGroupsCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::restrictUsernameAutocompletionToGroupsCheckboxInput(), 10)->isChecked());
}
/**
@@ -214,7 +214,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatUsernameAutocompletionIsNotRestrictedToGroups() {
Assert::assertFalse(
- $this->actor->find(self::restrictUsernameAutocompletionToGroupsCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::restrictUsernameAutocompletionToGroupsCheckboxInput(), 10)->isChecked());
}
/**
@@ -222,7 +222,7 @@ class SettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatSharesAreNotAcceptedByDefault() {
Assert::assertFalse(
- $this->actor->find(self::acceptSharesByDefaultCheckboxInput(), 10)->isChecked());
+ $this->actor->find(self::acceptSharesByDefaultCheckboxInput(), 10)->isChecked());
}
/**
diff --git a/tests/acceptance/features/bootstrap/SettingsMenuContext.php b/tests/acceptance/features/bootstrap/SettingsMenuContext.php
index f89d8782198..eaf667d4423 100644
--- a/tests/acceptance/features/bootstrap/SettingsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/SettingsMenuContext.php
@@ -165,7 +165,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheSettingsMenuIsShown() {
Assert::assertTrue(
- $this->actor->find(self::settingsMenu(), 10)->isVisible());
+ $this->actor->find(self::settingsMenu(), 10)->isVisible());
}
/**
@@ -180,7 +180,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheItemInTheSettingsMenuIsShown($itemText) {
Assert::assertTrue(
- $this->actor->find(self::menuItemFor($itemText), 10)->isVisible());
+ $this->actor->find(self::menuItemFor($itemText), 10)->isVisible());
}
/**
@@ -191,7 +191,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface {
try {
Assert::assertFalse(
- $this->actor->find(self::menuItemFor($itemText))->isVisible());
+ $this->actor->find(self::menuItemFor($itemText))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
diff --git a/tests/acceptance/features/bootstrap/ToastContext.php b/tests/acceptance/features/bootstrap/ToastContext.php
index 3dc941901c1..7ca3df2f47e 100644
--- a/tests/acceptance/features/bootstrap/ToastContext.php
+++ b/tests/acceptance/features/bootstrap/ToastContext.php
@@ -49,6 +49,6 @@ class ToastContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheToastIsShown($message) {
Assert::assertTrue($this->actor->find(
- self::toastMessage($message), 10)->isVisible());
+ self::toastMessage($message), 10)->isVisible());
}
}
diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php
index 4d17b3b5118..33c47850202 100644
--- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php
+++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php
@@ -270,9 +270,9 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheListOfUsersContainsTheUser($user) {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::rowForUser($user),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::rowForUser($user),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The user $user in the list of users is not shown yet after $timeout seconds");
}
}
@@ -282,9 +282,9 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheListOfUsersDoesNotContainsTheUser($user) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::rowForUser($user),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::rowForUser($user),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The user $user in the list of users is still shown after $timeout seconds");
}
}
@@ -294,9 +294,9 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheNewUserFormIsShown() {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::newUserForm(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::newUserForm(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The new user form is not shown yet after $timeout seconds");
}
}
@@ -352,9 +352,9 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
}
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::classCellForUser($cell . ' icon-loading-small', $user),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::classCellForUser($cell . ' icon-loading-small', $user),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The loading icon for user $user is still shown after $timeout seconds");
}
}
@@ -372,9 +372,9 @@ class UsersSettingsContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheEditModeIsOn($user) {
if (!WaitFor::elementToBeEventuallyShown(
- $this->actor,
- self::editModeOn($user),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::editModeOn($user),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The edit mode for user $user in the list of users is not on yet after $timeout seconds");
}
}
diff --git a/tests/acceptance/features/bootstrap/WaitFor.php b/tests/acceptance/features/bootstrap/WaitFor.php
index b07586c4662..37a268360aa 100644
--- a/tests/acceptance/features/bootstrap/WaitFor.php
+++ b/tests/acceptance/features/bootstrap/WaitFor.php
@@ -25,7 +25,6 @@
* Helper class with common "wait for" functions.
*/
class WaitFor {
-
/**
* Waits for the element to be visible.
*
diff --git a/tests/acceptance/features/core/Actor.php b/tests/acceptance/features/core/Actor.php
index ea33e7df21e..abe9a390920 100644
--- a/tests/acceptance/features/core/Actor.php
+++ b/tests/acceptance/features/core/Actor.php
@@ -59,7 +59,6 @@
* performs them.
*/
class Actor {
-
/**
* @var string
*/
diff --git a/tests/acceptance/features/core/ActorAware.php b/tests/acceptance/features/core/ActorAware.php
index 5a1a7542355..c734d7e1906 100644
--- a/tests/acceptance/features/core/ActorAware.php
+++ b/tests/acceptance/features/core/ActorAware.php
@@ -22,7 +22,6 @@
*/
trait ActorAware {
-
/**
* @var Actor
*/
diff --git a/tests/acceptance/features/core/ActorAwareInterface.php b/tests/acceptance/features/core/ActorAwareInterface.php
index 37261773cbb..7b855aed4d3 100644
--- a/tests/acceptance/features/core/ActorAwareInterface.php
+++ b/tests/acceptance/features/core/ActorAwareInterface.php
@@ -22,7 +22,6 @@
*/
interface ActorAwareInterface {
-
/**
* @param Actor $actor
*/
diff --git a/tests/acceptance/features/core/ActorContext.php b/tests/acceptance/features/core/ActorContext.php
index aa538f06069..7f152a1f3eb 100644
--- a/tests/acceptance/features/core/ActorContext.php
+++ b/tests/acceptance/features/core/ActorContext.php
@@ -48,7 +48,6 @@ use Behat\MinkExtension\Context\RawMinkContext;
* are stopped after each scenario is run.
*/
class ActorContext extends RawMinkContext {
-
/**
* @var array
*/
diff --git a/tests/acceptance/features/core/ElementFinder.php b/tests/acceptance/features/core/ElementFinder.php
index 9981321c90d..714b100bfa2 100644
--- a/tests/acceptance/features/core/ElementFinder.php
+++ b/tests/acceptance/features/core/ElementFinder.php
@@ -44,7 +44,6 @@
* NoSuchElementException is thrown.
*/
class ElementFinder {
-
/**
* Finds an element in the given Mink Session.
*
diff --git a/tests/acceptance/features/core/ElementWrapper.php b/tests/acceptance/features/core/ElementWrapper.php
index 89a73d5aa79..6ac9a6b8e8f 100644
--- a/tests/acceptance/features/core/ElementWrapper.php
+++ b/tests/acceptance/features/core/ElementWrapper.php
@@ -90,7 +90,6 @@
* the ElementWrapper).
*/
class ElementWrapper {
-
/**
* @var ElementFinder
*/
diff --git a/tests/acceptance/features/core/Locator.php b/tests/acceptance/features/core/Locator.php
index dd971147f86..1b933399e6b 100644
--- a/tests/acceptance/features/core/Locator.php
+++ b/tests/acceptance/features/core/Locator.php
@@ -29,7 +29,6 @@
* fluent interface with Locator::forThe().
*/
class Locator {
-
/**
* @var string
*/
@@ -102,7 +101,6 @@ class Locator {
}
class LocatorBuilder {
-
/**
* @param string $selector
* @param string|array $locator
@@ -242,7 +240,6 @@ class LocatorBuilder {
}
class LocatorBuilderSecondStep {
-
/**
* @var string
*/
@@ -280,7 +277,6 @@ class LocatorBuilderSecondStep {
}
class LocatorBuilderThirdStep {
-
/**
* @var string
*/
diff --git a/tests/acceptance/features/core/NextcloudTestServerContext.php b/tests/acceptance/features/core/NextcloudTestServerContext.php
index 682811248e1..d0dc0c32181 100644
--- a/tests/acceptance/features/core/NextcloudTestServerContext.php
+++ b/tests/acceptance/features/core/NextcloudTestServerContext.php
@@ -59,7 +59,6 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
* - second-parameter-value
*/
class NextcloudTestServerContext implements Context {
-
/**
* @var NextcloudTestServerHelper
*/
diff --git a/tests/acceptance/features/core/NextcloudTestServerHelper.php b/tests/acceptance/features/core/NextcloudTestServerHelper.php
index cd50616e34c..69b8ce70505 100644
--- a/tests/acceptance/features/core/NextcloudTestServerHelper.php
+++ b/tests/acceptance/features/core/NextcloudTestServerHelper.php
@@ -46,7 +46,6 @@
* nothing to be explicitly catched a plain base Exception is used.
*/
interface NextcloudTestServerHelper {
-
/**
* Sets up the Nextcloud test server.
*
diff --git a/tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php b/tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php
index 36cffc325dc..367e950931d 100644
--- a/tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php
+++ b/tests/acceptance/features/core/NextcloudTestServerLocalApacheHelper.php
@@ -47,7 +47,6 @@
* server can be got from "getBaseUrl".
*/
class NextcloudTestServerLocalApacheHelper implements NextcloudTestServerHelper {
-
/**
* @var string
*/
diff --git a/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php b/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
index ce81881c9c4..a1ab1f8720a 100644
--- a/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
+++ b/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
@@ -44,7 +44,6 @@
* server can be got from "getBaseUrl".
*/
class NextcloudTestServerLocalBuiltInHelper implements NextcloudTestServerHelper {
-
/**
* @var string
*/
diff --git a/tests/acceptance/features/core/NoSuchElementException.php b/tests/acceptance/features/core/NoSuchElementException.php
index dca884556ad..35583c7e63f 100644
--- a/tests/acceptance/features/core/NoSuchElementException.php
+++ b/tests/acceptance/features/core/NoSuchElementException.php
@@ -25,7 +25,6 @@
* Exception to signal that the element looked for could not be found.
*/
class NoSuchElementException extends \Exception {
-
/**
* @param string $message
* @param null|\Exception $previous
diff --git a/tests/acceptance/features/core/Utils.php b/tests/acceptance/features/core/Utils.php
index 1650df4f824..eb7c65e993a 100644
--- a/tests/acceptance/features/core/Utils.php
+++ b/tests/acceptance/features/core/Utils.php
@@ -22,7 +22,6 @@
*/
class Utils {
-
/**
* Waits at most $timeout seconds for the given condition to be true,
* checking it again every $timeoutStep seconds.