Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues running phpunit tests #387

Closed
lcalaresu opened this issue Jun 11, 2017 · 2 comments
Closed

Issues running phpunit tests #387

lcalaresu opened this issue Jun 11, 2017 · 2 comments
Assignees

Comments

@lcalaresu
Copy link
Member

I experienced the same problem as on nextcloud/server#4440.
Running phpunit tests on my machine threw lots of __construct() must implement interface OCP\IDBConnection.

I tried to follow exactly the same steps as the travis build, but it's impossible for me to make it work.

Thanks to georgehrke on irc, I got the correction quickly. It seems as simple as calling the parent setUp() on 2 test classes... However, I do not know why it seems to happen to some people only (same on nextcloud server).

Steps to reproduce

  1. Just run phpunit --configuration phpunit.xml

Expected behaviour

Tests should run fine

Actual behaviour

Tell us what happens instead

Mail app

Mail app version: master (as of 2017-06-11)

Mailserver or service: christophwurst/owncloud-mail-test-docker

Server configuration

Operating system: Debian Jessie

Web server: Nginx

Database: SQLite

PHP version: 7.0/7.1

PhpUnit log
Repeated 60 times:
TypeError: Argument 1 passed to OC\BackgroundJob\JobList::__construct() must implement interface OCP\IDBConnection, null given, called in /home/luc/dev/core/lib/private/Server.php on line 508
@ChristophWurst
Copy link
Member

Fixed by #388 :)

@lock
Copy link

lock bot commented Nov 20, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and questions.

@lock lock bot locked and limited conversation to collaborators Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants