mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-27 06:44:53 +02:00
last fix for integration tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
1653985b9d
commit
2675f3f96f
|
@ -217,13 +217,12 @@ class FeatureContext implements Context {
|
|||
$xml = simplexml_load_string($this->response->getBody());
|
||||
/** @var array $responseArray */
|
||||
$responseArray = json_decode(json_encode((array)$xml), true);
|
||||
foreach($responseArray['data'] as $arrayKey => $arrayValue) {
|
||||
if(count($responseArray['data'][$arrayKey]) === 0) {
|
||||
$responseArray['data'][$arrayKey] = '';
|
||||
}
|
||||
}
|
||||
|
||||
if (count((array)$responseArray['data'][$key]) === 0) {
|
||||
$responseArray['data'][$key] = '';
|
||||
}
|
||||
$actualValue = $responseArray['data'][$key];
|
||||
|
||||
if($actualValue !== $value) {
|
||||
throw new UnexpectedValueException(
|
||||
sprintf(
|
||||
|
@ -242,7 +241,7 @@ class FeatureContext implements Context {
|
|||
public function aLocalUserWithUidExists($uid) {
|
||||
shell_exec(
|
||||
sprintf(
|
||||
'sudo -u apache OC_PASS=password%s %s user:add %s --display-name "Default displayname of '.$uid.'" --password-from-env',
|
||||
'sudo -u apache OC_PASS=password %s %s user:add %s --display-name "Default displayname of '.$uid.'" --password-from-env',
|
||||
PHP_BINARY,
|
||||
__DIR__ . '/../../../../../../occ',
|
||||
$uid
|
||||
|
|
Loading…
Reference in a new issue