image: nextcloudci/integration-php7.1:1
commands:
- ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
- - ./occ app:enable user_ldap
- cd build/integration
- ./run.sh ldap_features/ldap-ocs.feature
when:
- ./occ config:system:set redis timeout --value=0 --type=integer
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
- - ./occ app:enable user_ldap
- cd build/integration
- ./run.sh ldap_features/ldap-openldap.feature
when:
- ./occ config:system:set redis timeout --value=0 --type=integer
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
- - ./occ app:enable user_ldap
- cd build/integration
- ./run.sh ldap_features/openldap-uid-username.feature
when:
- ./occ config:system:set redis timeout --value=0 --type=integer
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
- - ./occ app:enable user_ldap
- cd build/integration
- ./run.sh ldap_features/openldap-numerical-id.feature
when:
if [ "$INSTALLED" == "true" ]; then
#Enable external storage app
- $OCC app:enable files_external
- $OCC app:enable user_ldap
+ $OCC app:install --keep-disabled files_external
+ $OCC app:install --keep-disabled user_ldap
+ $OCC app:enable files_external user_ldap
mkdir -p work/local_storage
OUTPUT_CREATE_STORAGE=`$OCC files_external:create local_storage local null::null -c datadir=$PWD/work/local_storage`
$OCC files_external:delete -y $ID_STORAGE
#Disable external storage app
- $OCC app:disable files_external
- $OCC app:disable user_ldap
+ $OCC app:disable files_external user_ldap
fi
if [ -z $HIDE_OC_LOGS ]; then
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Daniel Kesselberg (mail@danielkesselberg.de)
*
* @param $statusCode
* @param $output
*/
- public function testCommandInput($appId, $statusCode, $output) {
+ public function testCommandInput($appId, $statusCode, $output): void {
$input = ['app-id' => $appId];
$this->commandTester->execute($input);
$this->assertSame($statusCode, $this->commandTester->getStatusCode());
}
- public function dataCommandInput() {
+ public function dataCommandInput(): array {
return [
[['admin_audit'], 0, 'admin_audit disabled'],
[['comments'], 0, 'comments disabled'],
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Daniel Kesselberg (mail@danielkesselberg.de)
*
);
$this->commandTester = new CommandTester($command);
+
+ \OC::$server->getAppManager()->disableApp('admin_audit');
+ \OC::$server->getAppManager()->disableApp('comments');
}
/**
* @param $statusCode
* @param $output
*/
- public function testCommandInput($appId, $groups, $statusCode, $output) {
+ public function testCommandInput($appId, $groups, $statusCode, $output): void {
$input = ['app-id' => $appId];
if (is_array($groups)) {
$this->assertSame($statusCode, $this->commandTester->getStatusCode());
}
- public function dataCommandInput() {
+ public function dataCommandInput(): array {
return [
[['admin_audit'], null, 0, 'admin_audit enabled'],
[['comments'], null, 0, 'comments enabled'],