summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/LDAPContext.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/LDAPContext.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/LDAPContext.php')
-rw-r--r--build/integration/features/bootstrap/LDAPContext.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php
index 3a9c59b52b4..e2b30011515 100644
--- a/build/integration/features/bootstrap/LDAPContext.php
+++ b/build/integration/features/bootstrap/LDAPContext.php
@@ -23,6 +23,7 @@
use Behat\Behat\Context\Context;
use Behat\Gherkin\Node\TableNode;
+use PHPUnit\Framework\Assert;
class LDAPContext implements Context {
use BasicStructure;
@@ -36,7 +37,7 @@ class LDAPContext implements Context {
*/
public function theResponseShouldContainATag($arg1) {
$configID = simplexml_load_string($this->response->getBody())->data[0]->$arg1;
- PHPUnit_Framework_Assert::assertInstanceOf(SimpleXMLElement::class, $configID[0]);
+ Assert::assertInstanceOf(SimpleXMLElement::class, $configID[0]);
}
/**
@@ -61,7 +62,7 @@ class LDAPContext implements Context {
*/
public function theResponseShouldContainATagWithValue($tagName, $expectedValue) {
$data = simplexml_load_string($this->response->getBody())->data[0]->$tagName;
- PHPUnit_Framework_Assert::assertEquals($expectedValue, $data[0]);
+ Assert::assertEquals($expectedValue, $data[0]);
}
/**