summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-06-30 14:09:11 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-06-30 14:09:11 +0200
commit5f4db0540af272e4dbb29b550eb6e93904ea26e7 (patch)
tree957f938fecb27ed38922ce60245c16d2b03e1955 /apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
parent646f2f1d414cd782f0a176b750915001c457863a (diff)
downloadnextcloud-server-5f4db0540af272e4dbb29b550eb6e93904ea26e7.tar.gz
nextcloud-server-5f4db0540af272e4dbb29b550eb6e93904ea26e7.zip
tests solidity
Diffstat (limited to 'apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php')
-rw-r--r--apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
index 957c25236fd..ac21d48fd16 100644
--- a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
+++ b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
@@ -1,5 +1,10 @@
<?php
+if(php_sapi_name() !== 'cli') {
+ print('Only via CLI, please.');
+ exit(1);
+}
+
include __DIR__ . '/config.php';
$cr = ldap_connect($host, $port);