summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-27 16:55:55 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-07 15:44:03 +0100
commit48679ae39fc7727e03b0295046a1e0c61c6bd325 (patch)
tree4cb0c28248d6c1911dc38a6b1b42a8bf2c31b84b /tests
parentd690f909284ae4bb4dee7d00318104ee76720bfa (diff)
downloadnextcloud-server-48679ae39fc7727e03b0295046a1e0c61c6bd325.tar.gz
nextcloud-server-48679ae39fc7727e03b0295046a1e0c61c6bd325.zip
Make sure we just check for the keys
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Db/EntityTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/AppFramework/Db/EntityTest.php b/tests/lib/AppFramework/Db/EntityTest.php
index 73138749a33..17234849a2d 100644
--- a/tests/lib/AppFramework/Db/EntityTest.php
+++ b/tests/lib/AppFramework/Db/EntityTest.php
@@ -123,11 +123,11 @@ class EntityTest extends \Test\TestCase {
public function testSetterMarksFieldUpdated() {
$this->entity->setId(3);
- $this->assertContains('id', $this->entity->getUpdatedFields());
+ $this->assertContains('id', array_keys($this->entity->getUpdatedFields()));
}
-
+
public function testCallShouldOnlyWorkForGetterSetter() {
$this->expectException(\BadFunctionCallException::class);
@@ -135,14 +135,14 @@ class EntityTest extends \Test\TestCase {
}
-
+
public function testGetterShouldFailIfAttributeNotDefined() {
$this->expectException(\BadFunctionCallException::class);
$this->entity->getTest();
}
-
+
public function testSetterShouldFailIfAttributeNotDefined() {
$this->expectException(\BadFunctionCallException::class);
@@ -243,7 +243,7 @@ class EntityTest extends \Test\TestCase {
$this->assertThat($entity->isAnotherBool(), new IsType(IsType::TYPE_BOOL));
}
-
+
public function testIsGetterShoudFailForOtherType() {
$this->expectException(\BadFunctionCallException::class);