tidy up acceptance tests

This commit is contained in:
Phil Davis
2023-04-21 14:59:50 +05:45
parent 8025b4220e
commit 7fb93058cf
26 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -369,7 +369,7 @@ class HttpRequestHelper {
}
/**
* Create an http request based on given parameters.
* Create an HTTP request based on given parameters.
* This creates a RequestInterface object that can be used with a client to send a request.
* This enables us to create multiple requests in advance so that we can send them to the server at once in parallel.
*
@@ -612,7 +612,7 @@ class HttpRequestHelper {
* @throws Exception
*/
public static function getResponseXml(ResponseInterface $response, ?string $exceptionText = ''):SimpleXMLElement {
// rewind just to make sure we can re-parse it in case it was parsed already...
// rewind just to make sure we can reparse it in case it was parsed already...
$response->getBody()->rewind();
$contents = $response->getBody()->getContents();
try {
+1 -1
View File
@@ -29,7 +29,7 @@ use Psr\Http\Message\ResponseInterface;
use SimpleXMLElement;
/**
* Helper to setup UI / Integration tests
* Helper to set up UI / Integration tests
*
* @author Artur Neumann <artur@jankaritech.com>
*
+2 -2
View File
@@ -169,8 +169,8 @@ class SharingHelper {
}
/**
* calculates the permission sum (int) from given permissions
* permissions can be passed in as int, string or array of int or string
* Calculates the permission sum (int) from given permissions.
* Permissions can be passed in as int, string or array of int or string
* 'read' => 1
* 'update' => 2
* 'create' => 4
+1 -1
View File
@@ -164,7 +164,7 @@ class UploadHelper extends \PHPUnit\Framework\Assert {
* @param string|null $source source file path
* @param string|null $destination destination path on the server
* @param string|null $xRequestId
* @param bool $overwriteMode when false creates separate files to test uploading brand new files,
* @param bool $overwriteMode when false creates separate files to test uploading brand-new files,
* when true it just overwrites the same file over and over again with the same name
* @param string|null $exceptChunkingType empty string or "old" or "new"
*