summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/BasicStructure.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-13 07:15:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-13 07:24:41 +0200
commit49d0f0c49901c291e26e4f02f52060bae25a11ed (patch)
tree947b34a7bdc11f4fa78cd0ce39f861e5941105ac /build/integration/features/bootstrap/BasicStructure.php
parent9a32592aca4b2a8ba3f6262be049688c1856c481 (diff)
downloadnextcloud-server-49d0f0c49901c291e26e4f02f52060bae25a11ed.tar.gz
nextcloud-server-49d0f0c49901c291e26e4f02f52060bae25a11ed.zip
Fixed phpunit Test class
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 9769037f190..32e02bad2a3 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -32,6 +32,7 @@
use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar;
use GuzzleHttp\Exception\ClientException;
+use PHPUnit\Framework\Assert;
use Psr\Http\Message\ResponseInterface;
require __DIR__ . '/../../vendor/autoload.php';
@@ -238,7 +239,7 @@ trait BasicStructure {
* @param int $statusCode
*/
public function theOCSStatusCodeShouldBe($statusCode) {
- PHPUnit_Framework_Assert::assertEquals($statusCode, $this->getOCSResponse($this->response));
+ Assert::assertEquals($statusCode, $this->getOCSResponse($this->response));
}
/**
@@ -246,7 +247,7 @@ trait BasicStructure {
* @param int $statusCode
*/
public function theHTTPStatusCodeShouldBe($statusCode) {
- PHPUnit_Framework_Assert::assertEquals($statusCode, $this->response->getStatusCode());
+ Assert::assertEquals($statusCode, $this->response->getStatusCode());
}
/**
@@ -254,7 +255,7 @@ trait BasicStructure {
* @param string $contentType
*/
public function theContentTypeShouldbe($contentType) {
- PHPUnit_Framework_Assert::assertEquals($contentType, $this->response->getHeader('Content-Type')[0]);
+ Assert::assertEquals($contentType, $this->response->getHeader('Content-Type')[0]);
}
/**