Skip to content

Commit

Permalink
Install viewer
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Hamann <[email protected]>
  • Loading branch information
tacruc committed Apr 21, 2022
1 parent 816e9a9 commit 7c83123
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud
- name: Install Nextcloud
run: php -f nextcloud/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- name: Checkout Viewer
run: git clone https://github.com/nextcloud/viewer.git -b ${{ matrix.nextcloud-versions }} viewer
working-directory: nextcloud/apps
- name: Build Viewer
run: make
working-directory: nextcloud/apps/viewer
- name: Enable Viewer
run: php -f nextcloud/occ app:enable viewer
- name: Fix php-parser on stable20 incompatibility with phpunit 9.3+
if: ${{ matrix.nextcloud-versions == 'stable20' }}
working-directory: nextcloud/3rdparty
Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/Controller/ContactsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use \OCP\EventDispatcher\IEventDispatcher;
use \OCA\DAV\CardDAV\CardDavBackend;
use OCA\DAV\CardDAV\ContactsManager;
use Psr\EventDispatcher\EventDispatcherInterface;


class ContactsControllerTest extends \PHPUnit\Framework\TestCase {
Expand Down Expand Up @@ -123,7 +124,8 @@ protected function setUp(): void {
$this->userPrincipalBackend,
$c->getServer()->getUserManager(),
$c->getServer()->getGroupManager(),
$c->query(IServerContainer::class)->query(IEventDispatcher::class)
$c->query(IServerContainer::class)->query(IEventDispatcher::class),
$c->query(IServerContainer::class)->query(EventDispatcherInterface::class),
);

$this->contactsController = new ContactsController(
Expand Down

0 comments on commit 7c83123

Please sign in to comment.