summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-25 21:53:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-25 21:53:04 +0100
commit23eb0462e56d72ed24b7b02483069844bd2919b8 (patch)
tree0d1917534ef451fa259eb89ddabdf9449e83d7c3 /build
parent3cf321fdfc4235a87015a9af2f59c63220016c65 (diff)
downloadnextcloud-server-23eb0462e56d72ed24b7b02483069844bd2919b8.tar.gz
nextcloud-server-23eb0462e56d72ed24b7b02483069844bd2919b8.zip
Use lowercase true, false and null constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/Sharing.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php
index 66b15436438..3d6ca27f2aa 100644
--- a/build/integration/features/bootstrap/Sharing.php
+++ b/build/integration/features/bootstrap/Sharing.php
@@ -327,14 +327,14 @@ trait Sharing {
return $this->isExpectedUrl((string)$element->$field, "index.php/s/");
}
elseif ((string)$element->$field == $contentExpected){
- return True;
+ return true;
}
else{
print($element->$field);
}
}
- return False;
+ return false;
} else {
if ($contentExpected == "A_TOKEN"){
return (strlen((string)$data->$field) == 15);
@@ -346,9 +346,9 @@ trait Sharing {
return $this->isExpectedUrl((string)$data->$field, "index.php/s/");
}
elseif ($data->$field == $contentExpected){
- return True;
+ return true;
}
- return False;
+ return false;
}
}
@@ -358,7 +358,7 @@ trait Sharing {
* @param string $filename
*/
public function checkSharedFileInResponse($filename){
- Assert::assertEquals(True, $this->isFieldInResponse('file_target', "/$filename"));
+ Assert::assertEquals(true, $this->isFieldInResponse('file_target', "/$filename"));
}
/**
@@ -367,7 +367,7 @@ trait Sharing {
* @param string $filename
*/
public function checkSharedFileNotInResponse($filename){
- Assert::assertEquals(False, $this->isFieldInResponse('file_target', "/$filename"));
+ Assert::assertEquals(false, $this->isFieldInResponse('file_target', "/$filename"));
}
/**
@@ -376,7 +376,7 @@ trait Sharing {
* @param string $user
*/
public function checkSharedUserInResponse($user){
- Assert::assertEquals(True, $this->isFieldInResponse('share_with', "$user"));
+ Assert::assertEquals(true, $this->isFieldInResponse('share_with', "$user"));
}
/**
@@ -385,17 +385,17 @@ trait Sharing {
* @param string $user
*/
public function checkSharedUserNotInResponse($user){
- Assert::assertEquals(False, $this->isFieldInResponse('share_with', "$user"));
+ Assert::assertEquals(false, $this->isFieldInResponse('share_with', "$user"));
}
public function isUserOrGroupInSharedData($userOrGroup, $permissions = null){
$data = simplexml_load_string($this->response->getBody())->data[0];
foreach($data as $element) {
if ($element->share_with == $userOrGroup && ($permissions === null || $permissions == $element->permissions)){
- return True;
+ return true;
}
}
- return False;
+ return false;
}
/**
@@ -424,7 +424,7 @@ trait Sharing {
$this->createShare($user1, $filepath, 0, $user2, null, null, $permissions);
}
$this->response = $client->get($fullUrl, $options);
- Assert::assertEquals(True, $this->isUserOrGroupInSharedData($user2, $permissions));
+ Assert::assertEquals(true, $this->isUserOrGroupInSharedData($user2, $permissions));
}
/**
@@ -453,7 +453,7 @@ trait Sharing {
$this->createShare($user, $filepath, 1, $group, null, null, $permissions);
}
$this->response = $client->get($fullUrl, $options);
- Assert::assertEquals(True, $this->isUserOrGroupInSharedData($group, $permissions));
+ Assert::assertEquals(true, $this->isUserOrGroupInSharedData($group, $permissions));
}
/**