Skip to content

Commit

Permalink
Do not specially handle case when shareWith is null in itShouldNotBeP…
Browse files Browse the repository at this point in the history
…ossibleToShareFileFolderUsingTheWebUI
  • Loading branch information
phil-davis committed Jun 11, 2019
1 parent a1e9bc7 commit b010b73
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/acceptance/features/bootstrap/WebUISharingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1251,14 +1251,10 @@ public function itShouldNotBePossibleToShareFileFolderUsingTheWebUI(
);
$sharingWasPossible = true;
} catch (ElementNotFoundException $e) {
if ($shareWith === null) {
$shareWithText = "";
if ($userOrGroup === "user") {
$shareWithText = $this->sharingDialog->userStringsToMatchAutoComplete($shareWith);
} else {
if ($userOrGroup === "user") {
$shareWithText = $this->sharingDialog->userStringsToMatchAutoComplete($shareWith);
} else {
$shareWithText = $this->sharingDialog->groupStringsToMatchAutoComplete($shareWith);
}
$shareWithText = $this->sharingDialog->groupStringsToMatchAutoComplete($shareWith);
}
$possibleMessages = [
"could not find share-with-field",
Expand Down

0 comments on commit b010b73

Please sign in to comment.