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

phpunit tests are failing in CI #576

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

phpunit tests are failing in CI #576

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

Comments

@SwikritiT
Copy link
Contributor

SwikritiT commented May 22, 2023

Build link: https://drone.owncloud.com/owncloud/customgroups/2982/2/4

Failure:

There were 11 errors:

1) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testDeleteAsAdmin
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 121

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:121
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:177
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

2) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testSetProperties with data set #0 (false, 1, 200, true)
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 333

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:333
/var/www/owncloud/server/lib/composer/sabre/dav/lib/DAV/PropPatch.php:254
/var/www/owncloud/server/lib/composer/sabre/dav/lib/DAV/PropPatch.php:225
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:281
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

3) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testSetProperties with data set #3 (false, 1, 200, true)
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 333

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:333
/var/www/owncloud/server/lib/composer/sabre/dav/lib/DAV/PropPatch.php:254
/var/www/owncloud/server/lib/composer/sabre/dav/lib/DAV/PropPatch.php:225
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:281
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

4) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testAddMemberAsAdmin with data set #0 (false, array(1, 'currentuser', 1))
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 219

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:219
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:366
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

5) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testAddMemberAsAdmin with data set #1 (true, null)
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 219

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:219
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:366
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

6) OCA\CustomGroups\Tests\unit\Dav\GroupMembershipCollectionTest::testAddMemberWithShareToMemberRestrictionAndCommonGroup
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php on line 219

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupMembershipCollection.php:219
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupMembershipCollectionTest.php:525
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

7) OCA\CustomGroups\Tests\unit\Dav\GroupsCollectionTest::testCreateGroup
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/GroupsCollection.php on line 196

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupsCollection.php:196
/var/www/owncloud/server/apps/customgroups/lib/Dav/GroupsCollection.php:170
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/GroupsCollectionTest.php:230
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

8) OCA\CustomGroups\Tests\unit\Dav\MembershipNodeTest::testDeleteAsAdmin
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php on line 144

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php:144
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/MembershipNodeTest.php:187
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

9) OCA\CustomGroups\Tests\unit\Dav\MembershipNodeTest::testDeleteSelfAsNonAdmin
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php on line 162

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php:162
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/MembershipNodeTest.php:320
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

10) OCA\CustomGroups\Tests\unit\Dav\MembershipNodeTest::testDeleteAsSuperAdmin
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php on line 144

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Dav/MembershipNode.php:144
/var/www/owncloud/server/apps/customgroups/tests/unit/Dav/MembershipNodeTest.php:378
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

11) OCA\CustomGroups\Tests\unit\Service\MembershipHelperTest::testNotifyUserRoleChange
TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /var/www/owncloud/server/apps/customgroups/lib/Service/MembershipHelper.php on line 301

/var/www/owncloud/server/lib/composer/symfony/event-dispatcher/EventDispatcher.php:48
/var/www/owncloud/server/apps/customgroups/lib/Service/MembershipHelper.php:301
/var/www/owncloud/server/apps/customgroups/tests/unit/Service/MembershipHelperTest.php:384
phpvfscomposer:///var/www/owncloud/server/lib/composer/phpunit/phpunit/phpunit:106

ERRORS!
Tests: 201, Assertions: 554, Errors: 11.

Generating code coverage report in Clover XML format ... done [00:00.042]
make: *** [rules/tests.mk:56: test-php-unit-dbg] Error 2

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