diff options
Diffstat (limited to 'tests/acceptance/features/bootstrap')
21 files changed, 7 insertions, 44 deletions
diff --git a/tests/acceptance/features/bootstrap/AppNavigationContext.php b/tests/acceptance/features/bootstrap/AppNavigationContext.php index 0fd9e92e9e4..427af0e40c9 100644 --- a/tests/acceptance/features/bootstrap/AppNavigationContext.php +++ b/tests/acceptance/features/bootstrap/AppNavigationContext.php @@ -25,7 +25,6 @@ use Behat\Behat\Context\Context; class AppNavigationContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -141,5 +140,4 @@ class AppNavigationContext implements Context, ActorAwareInterface { PHPUnit_Framework_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 a75cce29936..b2b6744a36b 100644 --- a/tests/acceptance/features/bootstrap/AppSettingsContext.php +++ b/tests/acceptance/features/bootstrap/AppSettingsContext.php @@ -25,7 +25,6 @@ use Behat\Behat\Context\Context; class AppSettingsContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -98,5 +97,4 @@ class AppSettingsContext implements Context, ActorAwareInterface { public function iSeeThatTheSettingsAreOpened() { WaitFor::elementToBeEventuallyShown($this->actor, self::appSettingsContent()); } - } diff --git a/tests/acceptance/features/bootstrap/AppsManagementContext.php b/tests/acceptance/features/bootstrap/AppsManagementContext.php index b9896305182..fea322a0af5 100644 --- a/tests/acceptance/features/bootstrap/AppsManagementContext.php +++ b/tests/acceptance/features/bootstrap/AppsManagementContext.php @@ -26,7 +26,6 @@ use Behat\Behat\Context\Context; class AppsManagementContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -227,6 +226,4 @@ class AppsManagementContext implements Context, ActorAwareInterface { PHPUnit_Framework_Assert::fail("The sidebar was not shown yet after $timeout seconds"); } } - - } diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php index 4cb2e5885d5..860e84fa950 100644 --- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php +++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class ContactsMenuContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -143,5 +142,4 @@ class ContactsMenuContext implements Context, ActorAwareInterface { PHPUnit_Framework_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 0558123ad9d..f9d2d6244e9 100644 --- a/tests/acceptance/features/bootstrap/DialogContext.php +++ b/tests/acceptance/features/bootstrap/DialogContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class DialogContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -64,5 +63,4 @@ class DialogContext implements Context, ActorAwareInterface { public function iSeeThatTheConfirmationDialogIsNotShown() { WaitFor::elementToBeEventuallyNotShown($this->actor, self::theDialog()); } - } diff --git a/tests/acceptance/features/bootstrap/FeatureContext.php b/tests/acceptance/features/bootstrap/FeatureContext.php index a125ea01ccc..72798ea98f7 100644 --- a/tests/acceptance/features/bootstrap/FeatureContext.php +++ b/tests/acceptance/features/bootstrap/FeatureContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class FeatureContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -33,5 +32,4 @@ class FeatureContext implements Context, ActorAwareInterface { public function iVisitTheHomePage() { $this->actor->getSession()->visit($this->actor->locatePath("/")); } - } diff --git a/tests/acceptance/features/bootstrap/FileListAncestorSetter.php b/tests/acceptance/features/bootstrap/FileListAncestorSetter.php index d914edf234f..af8534f012c 100644 --- a/tests/acceptance/features/bootstrap/FileListAncestorSetter.php +++ b/tests/acceptance/features/bootstrap/FileListAncestorSetter.php @@ -62,5 +62,4 @@ trait FileListAncestorSetter { private function setFileListAncestorForActor($fileListAncestor, Actor $actor) { $this->fileListContext->setFileListAncestorForActor($fileListAncestor, $actor); } - } diff --git a/tests/acceptance/features/bootstrap/FileListContext.php b/tests/acceptance/features/bootstrap/FileListContext.php index 745f522d874..72c5c012dd1 100644 --- a/tests/acceptance/features/bootstrap/FileListContext.php +++ b/tests/acceptance/features/bootstrap/FileListContext.php @@ -552,5 +552,4 @@ class FileListContext implements Context, ActorAwareInterface { public function iSeeThatHasUnreadComments($fileName) { PHPUnit_Framework_Assert::assertTrue($this->actor->find(self::commentActionForFile($this->fileListAncestor, $fileName), 10)->isVisible()); } - } diff --git a/tests/acceptance/features/bootstrap/FilePickerContext.php b/tests/acceptance/features/bootstrap/FilePickerContext.php index d7659dbac8e..b9d82090eaa 100644 --- a/tests/acceptance/features/bootstrap/FilePickerContext.php +++ b/tests/acceptance/features/bootstrap/FilePickerContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class FilePickerContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -123,5 +122,4 @@ class FilePickerContext implements Context, ActorAwareInterface { public function iChooseTheLastSelectedFileInTheFilePicker() { $this->actor->find(self::chooseButton(), 10)->click(); } - } diff --git a/tests/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php index 6a816d7f368..a5dcfb700ba 100644 --- a/tests/acceptance/features/bootstrap/FilesAppContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class FilesAppContext implements Context, ActorAwareInterface { - use ActorAware; use FileListAncestorSetter; diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php index 040c5c4dd75..6b30d49d71e 100644 --- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class FilesAppSharingContext implements Context, ActorAwareInterface { - use ActorAware; /** diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index ceb90263e4e..bf44d31fb03 100644 --- a/tests/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php @@ -25,7 +25,6 @@ use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; class LoginPageContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -158,5 +157,4 @@ class LoginPageContext implements Context, ActorAwareInterface { $this->iSeeThatTheCurrentPageIsTheLoginPage(); $this->iSeeThatAWrongPasswordMessageIsShown(); } - } diff --git a/tests/acceptance/features/bootstrap/NotificationsContext.php b/tests/acceptance/features/bootstrap/NotificationsContext.php index 13717b0ba03..15ad6ee90c8 100644 --- a/tests/acceptance/features/bootstrap/NotificationsContext.php +++ b/tests/acceptance/features/bootstrap/NotificationsContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class NotificationsContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -94,5 +93,4 @@ class NotificationsContext implements Context, ActorAwareInterface { // Hide the notifications again $this->actor->find(self::notificationsButton(), 10)->click(); } - } diff --git a/tests/acceptance/features/bootstrap/PublicShareContext.php b/tests/acceptance/features/bootstrap/PublicShareContext.php index 891c231b164..2213cf877f9 100644 --- a/tests/acceptance/features/bootstrap/PublicShareContext.php +++ b/tests/acceptance/features/bootstrap/PublicShareContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class PublicShareContext implements Context, ActorAwareInterface { - use ActorAware; use FileListAncestorSetter; @@ -250,5 +249,4 @@ class PublicShareContext implements Context, ActorAwareInterface { } catch (NoSuchElementException $exception) { } } - } diff --git a/tests/acceptance/features/bootstrap/SearchContext.php b/tests/acceptance/features/bootstrap/SearchContext.php index d2d6b708067..bd4ba2beaef 100644 --- a/tests/acceptance/features/bootstrap/SearchContext.php +++ b/tests/acceptance/features/bootstrap/SearchContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class SearchContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -111,5 +110,4 @@ class SearchContext implements Context, ActorAwareInterface { PHPUnit_Framework_Assert::assertEquals( $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 ccc010e38e9..60499c96bd1 100644 --- a/tests/acceptance/features/bootstrap/SettingsContext.php +++ b/tests/acceptance/features/bootstrap/SettingsContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class SettingsContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -236,5 +235,4 @@ class SettingsContext implements Context, ActorAwareInterface { PHPUnit_Framework_Assert::fail("The dropdown in system tags section in Administration Settings does not contain the tag $tag after $numberOfTries tries"); } - } diff --git a/tests/acceptance/features/bootstrap/SettingsMenuContext.php b/tests/acceptance/features/bootstrap/SettingsMenuContext.php index a740e98756b..485f945f04c 100644 --- a/tests/acceptance/features/bootstrap/SettingsMenuContext.php +++ b/tests/acceptance/features/bootstrap/SettingsMenuContext.php @@ -25,7 +25,6 @@ use Behat\Behat\Context\Context; class SettingsMenuContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -217,5 +216,4 @@ class SettingsMenuContext implements Context, ActorAwareInterface { } catch (NoSuchElementException $exception) { } } - } diff --git a/tests/acceptance/features/bootstrap/ThemingAppContext.php b/tests/acceptance/features/bootstrap/ThemingAppContext.php index ed00b9e2289..de25bafd6c3 100644 --- a/tests/acceptance/features/bootstrap/ThemingAppContext.php +++ b/tests/acceptance/features/bootstrap/ThemingAppContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class ThemingAppContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -110,15 +109,15 @@ class ThemingAppContext implements Context, ActorAwareInterface { private function getRGBArray($color) { if (preg_match("/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\)/", $color, $matches)) { - // Already an RGB (R, G, B) color - // Convert from "rgb(R, G, B)" string to RGB array - $tmpColor = array_splice($matches, 1); + // Already an RGB (R, G, B) color + // Convert from "rgb(R, G, B)" string to RGB array + $tmpColor = array_splice($matches, 1); } elseif ($color[0] === '#') { - $color = substr($color, 1); - // HEX Color, convert to RGB array. - $tmpColor = sscanf($color, "%02X%02X%02X"); + $color = substr($color, 1); + // HEX Color, convert to RGB array. + $tmpColor = sscanf($color, "%02X%02X%02X"); } else { - PHPUnit_Framework_Assert::fail("The acceptance test does not know how to handle the color string : '$color'. " + PHPUnit_Framework_Assert::fail("The acceptance test does not know how to handle the color string : '$color'. " . "Please provide # before HEX colors in your features."); } return $tmpColor; @@ -161,5 +160,4 @@ class ThemingAppContext implements Context, ActorAwareInterface { PHPUnit_Framework_Assert::fail("The 'Saved' status messages in Theming app has not been shown after $timeout seconds"); } } - } diff --git a/tests/acceptance/features/bootstrap/ToastContext.php b/tests/acceptance/features/bootstrap/ToastContext.php index 28c81f8c50d..62b15c74c71 100644 --- a/tests/acceptance/features/bootstrap/ToastContext.php +++ b/tests/acceptance/features/bootstrap/ToastContext.php @@ -24,7 +24,6 @@ use Behat\Behat\Context\Context; class ToastContext implements Context, ActorAwareInterface { - use ActorAware; /** @@ -51,5 +50,4 @@ class ToastContext implements Context, ActorAwareInterface { PHPUnit_Framework_Assert::assertTrue($this->actor->find( self::toastMessage($message), 10)->isVisible()); } - } diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index d42b49cbf2d..020da466128 100644 --- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php @@ -26,7 +26,6 @@ use Behat\Behat\Context\Context; class UsersSettingsContext implements Context, ActorAwareInterface { - use ActorAware; /** diff --git a/tests/acceptance/features/bootstrap/WaitFor.php b/tests/acceptance/features/bootstrap/WaitFor.php index 0b79d023ee5..b07586c4662 100644 --- a/tests/acceptance/features/bootstrap/WaitFor.php +++ b/tests/acceptance/features/bootstrap/WaitFor.php @@ -74,5 +74,4 @@ class WaitFor { return Utils::waitFor($elementNotShownCallback, $timeout, $timeoutStep); } - } |