Skip to content

Commit

Permalink
Tests fixes for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LEDfan committed Feb 10, 2018
1 parent 56768ab commit cdb20c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 1 addition & 9 deletions tests/integration/ContactsStoreUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,6 @@ public function testDisabled()

private function assertCanonicalizeEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $ignoreCase = false)
{
$constraint = new IsEqual(
$expected,
$delta,
$maxDepth,
true,
$ignoreCase
);

static::assertThat($actual, $constraint, $message);
$this->assertEquals($expected, $actual, $message, $delta, $maxDepth, true, $ignoreCase);
}
}
3 changes: 3 additions & 0 deletions tests/integration/db/PresenceMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ public function testGetConnectedUsersIfUserHasNot()
{
$this->setValueOfPrivateProperty($this->mapper, 'connectedUsers', []);
$this->setupContactsStoreAPI();
if (!Application::contactsStoreApiSupported()) {
$this->markTestSkipped();
}

$group = \OC::$server->getGroupManager()->createGroup('group1');
$group->addUser(\OC::$server->getUserManager()->get('derp'));
Expand Down

0 comments on commit cdb20c1

Please sign in to comment.