Skip to content

Commit

Permalink
Enable travis to use upstream PR + only available from NC 13 + fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Tobia De Koninck <[email protected]>
  • Loading branch information
LEDfan committed Oct 1, 2017
1 parent 41feeee commit 212aff8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:

env:
global:
- BRANCH=master
- BRANCH=contactsstore_public_api
- REPO=nc
matrix:
- DB=mysql
Expand Down
2 changes: 1 addition & 1 deletion appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function __construct(array $urlParams=array()){

$container->registerService('UserProvider', function(IContainer $c) {
$version = \OCP\Util::getVersion();
if (($version[0] == 12 && $version[2] >= 2) || ($version[0] >= 13)) {
if ($version[0] == 13) {
return new ContactsStoreUserProvider(
$c->query('OCP\Contacts\ContactsMenu\IContactsStore'),
$c->query('ServerContainer')->getUserSession(),
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/db/PresenceMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public function setupContactsStoreAPI() {
$syncService->updateUser($user);
}

\OC_User::setIncognitoMode(false);

\OC::$server->getDatabaseConnection()->executeQuery("DELETE FROM *PREFIX*ojsxc_stanzas");

}
Expand Down

0 comments on commit 212aff8

Please sign in to comment.