owncloud / customgroups

Let users create their own custom groups
GNU Affero General Public License v3.0
8 stars 14 forks source link

phpunit tests are failing in CI #576

Closed SwikritiT closed 1 year ago

SwikritiT commented 1 year ago

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: https://github.com/owncloud/core/issues/39630