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

Php-unit tests failing in nightly #229

Closed
SwikritiT opened this issue May 22, 2023 · 0 comments · Fixed by #231
Closed

Php-unit tests failing in nightly #229

SwikritiT opened this issue May 22, 2023 · 0 comments · Fixed by #231
Assignees
Labels

Comments

@SwikritiT
Copy link
Contributor

SwikritiT commented May 22, 2023

The nightly is failing with

There were 6 errors:

1) OCA\Impersonate\Tests\Controller\LogoutControllerTest::testImpersonateLogout with data set #1 ('impersonator')
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/logoutcontroller.php on line 103

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/logoutcontroller.php:103
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/LogoutControllerTest.php:147
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

2) OCA\Impersonate\Tests\Controller\SettingsControllerTest::testImpersonate with data set #0 ('username', 'username', 'admin')
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php on line 138

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:138
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:242
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/SettingsControllerTest.php:186
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

3) OCA\Impersonate\Tests\Controller\SettingsControllerTest::testImpersonate with data set #1 ('Username', 'username', 'groupadmin')
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php on line 138

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:138
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:255
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/SettingsControllerTest.php:221
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

4) OCA\Impersonate\Tests\Controller\SettingsControllerTest::testWronglyConfiguredGroupListAllowsImpersonation
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php on line 138

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:138
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:255
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/SettingsControllerTest.php:377
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

5) OCA\Impersonate\Tests\Controller\SettingsControllerTest::testImpersonateGrantAllSubadmin
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php on line 138

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:138
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:248
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/SettingsControllerTest.php:610
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

6) OCA\Impersonate\Tests\Controller\SettingsControllerTest::testImpersonateAppEnabledForTargetUser
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php on line 138

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:138
/var/www/owncloud/server/apps/impersonate/controller/settingscontroller.php:248
/var/www/owncloud/server/apps/impersonate/tests/unit/controller/SettingsControllerTest.php:720
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

ERRORS!
Tests: 26, Assertions: 43, Errors: 6.

Related core issue: owncloud/core#39630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants