Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions tests/acceptance/features/bootstrap/Provisioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,25 @@ public function userHasBeenCreatedWithDefaultAttributes($user) {
}
}

/**
* @Given /^user "([^"]*)" has been created with default attributes and without skeleton files$/
*
* @param string $user
*
* @return void
*/
public function userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles($user) {
$this->featureContext->runOcc(["config:system:get skeletondirectory"]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paurakhsharma this breaks CI in activity app

      Notice: Undefined property: FeatureContext::$featureContext in /var/www/owncloud/server/tests/acceptance/features/bootstrap/Provisioning.php line 282

see https://drone.owncloud.com/owncloud/activity/419/180

$path = \trim($this->featureContext->getStdOutOfOccCommand());
$this->featureContext->runOcc(["config:system:delete skeletondirectory"]);
try {
$this->featureContext->userHasBeenCreatedWithDefaultAttributes($user);
} finally {
// restore skeletondirectory even if user creation failed
$this->featureContext->runOcc(["config:system:set skeletondirectory --value $path"]);
}
}

/**
* @Given /^these users have been created\s?(with default attributes|)\s?(but not initialized|):$/
* expects a table of users with the heading
Expand Down Expand Up @@ -2069,7 +2088,7 @@ public function theAdministratorGetsAllTheGroupsWhereUserIsSubadminUsingTheProvi
$fullUrl, $this->getAdminUsername(), $this->getAdminPassword()
);
}

/**
* @Given /^user "([^"]*)" has been made a subadmin of group "([^"]*)"$/
*
Expand Down Expand Up @@ -2790,7 +2809,7 @@ public function cleanupGroups() {
}
$this->usingServer($previousServer);
}

/**
* @BeforeScenario
*
Expand All @@ -2800,7 +2819,7 @@ public function rememberAppEnabledDisabledState() {
$this->enabledApps = $this->getEnabledApps();
$this->disabledApps = $this->getDisabledApps();
}

/**
* @AfterScenario
*
Expand Down