{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/mail/issues/1058","labels_url":"https://api.github.com/repos/owncloud/mail/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/mail/issues/1058/comments","events_url":"https://api.github.com/repos/owncloud/mail/issues/1058/events","html_url":"https://github.com/owncloud/mail/pull/1058","id":105183030,"number":1058,"title":"load app in bootstrap.php to fix php unit tests","user":{"login":"ChristophWurst","id":1374172,"avatar_url":"https://avatars.githubusercontent.com/u/1374172?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophWurst","html_url":"https://github.com/ChristophWurst","followers_url":"https://api.github.com/users/ChristophWurst/followers","following_url":"https://api.github.com/users/ChristophWurst/following{/other_user}","gists_url":"https://api.github.com/users/ChristophWurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophWurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophWurst/subscriptions","organizations_url":"https://api.github.com/users/ChristophWurst/orgs","repos_url":"https://api.github.com/users/ChristophWurst/repos","events_url":"https://api.github.com/users/ChristophWurst/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophWurst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/mail/labels/3%20-%20to%20review","name":"3 - to review","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"ChristophWurst","id":1374172,"avatar_url":"https://avatars.githubusercontent.com/u/1374172?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophWurst","html_url":"https://github.com/ChristophWurst","followers_url":"https://api.github.com/users/ChristophWurst/followers","following_url":"https://api.github.com/users/ChristophWurst/following{/other_user}","gists_url":"https://api.github.com/users/ChristophWurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophWurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophWurst/subscriptions","organizations_url":"https://api.github.com/users/ChristophWurst/orgs","repos_url":"https://api.github.com/users/ChristophWurst/repos","events_url":"https://api.github.com/users/ChristophWurst/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophWurst/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/mail/milestones/2","html_url":"https://github.com/owncloud/mail/milestones/0.3%20%E2%80%93%20refactoring!","labels_url":"https://api.github.com/repos/owncloud/mail/milestones/2/labels","id":746317,"number":2,"title":"0.3 – refactoring!","description":"","creator":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":51,"state":"open","created_at":"2014-08-07T14:27:56Z","updated_at":"2015-09-07T09:39:12Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-07T09:39:12Z","updated_at":"2015-09-07T10:57:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/mail/pulls/1058","html_url":"https://github.com/owncloud/mail/pull/1058","diff_url":"https://github.com/owncloud/mail/pull/1058.diff","patch_url":"https://github.com/owncloud/mail/pull/1058.patch"},"body":"this is needed in addition to #1023 because of new path restrictions of core (https://github.com/owncloud/core/pull/18839)\r\n\r\n@Gomez @irgendwie @Xenopathic @nickvergessen @oparoz "},"comment":{"url":"https://api.github.com/repos/owncloud/mail/issues/comments/138269601","html_url":"https://github.com/owncloud/mail/pull/1058#issuecomment-138269601","issue_url":"https://api.github.com/repos/owncloud/mail/issues/1058","id":138269601,"user":{"login":"ChristophWurst","id":1374172,"avatar_url":"https://avatars.githubusercontent.com/u/1374172?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophWurst","html_url":"https://github.com/ChristophWurst","followers_url":"https://api.github.com/users/ChristophWurst/followers","following_url":"https://api.github.com/users/ChristophWurst/following{/other_user}","gists_url":"https://api.github.com/users/ChristophWurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophWurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophWurst/subscriptions","organizations_url":"https://api.github.com/users/ChristophWurst/orgs","repos_url":"https://api.github.com/users/ChristophWurst/repos","events_url":"https://api.github.com/users/ChristophWurst/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophWurst/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T10:57:28Z","updated_at":"2015-09-07T10:57:28Z","body":"> @ChristophWurst - Try to remove \\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); to see if it still works. It does in Gallery.\r\n\r\nDoesn't work for mail:\r\n```bash\r\n$ phpunit -c tests/phpunit.xml \r\nPHP Fatal error:  Uncaught exception 'OCP\\AutoloadNotAllowedException' with message 'Autoload path not allowed: /home/christoph/workspace/owncloud/tests/lib/testcase.php' in /home/christoph/workspace/owncloud/lib/autoloader.php:134\r\nStack trace:\r\n#0 /home/christoph/workspace/owncloud/lib/autoloader.php(154): OC\\Autoloader->isValidPath('/home/christoph...')\r\n#1 [internal function]: OC\\Autoloader->load('Test\\\\TestCase')\r\n#2 /home/christoph/workspace/owncloud/apps/mail/tests/controller/accountscontrollertest.php(28): spl_autoload_call('Test\\\\TestCase')\r\n#3 phar:///usr/share/webapps/bin/phpunit.phar/phar/phpunit/Util/Fileloader.php(52): include_once('/home/christoph...')\r\n#4 phar:///usr/share/webapps/bin/phpunit.phar/phar/phpunit/Util/Fileloader.php(36): PHPUnit_Util_Fileloader::load('/home/christoph...')\r\n#5 phar:///usr/share/webapps/bin/phpunit.phar/phar/phpunit/Framework/TestSuite.php(331): PHPUnit_Util_Fileloader::checkAndLoad('/home/christoph...')\r\n#6 phar:///usr/share/webapps/bin/phpunit.phar/phar/phpunit/Framework/TestSuite.php(403 in /home/christoph/workspace/owncloud/lib/autoloader.php on line 134\r\n```"}}