mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-28 10:24:11 +01:00
0b5fb1bfc7
Also fixed unit tests so they run but some still fail - Added IUserSession mock - Replaced OCP::getUser() with IUserSession usage to make the mock work - Added base class for test cases
7 lines
194 B
PHP
7 lines
194 B
PHP
<?php
|
|
|
|
$tmpl = new OCP\Template( 'contacts', 'settings');
|
|
$tmpl->assign('addressbooks', OCA\Contacts\Addressbook::all(\OC::$server->getUserSession()->getUser()->getUId()));
|
|
|
|
$tmpl->printPage();
|