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

[stable21] Fix casing of core test folder, bring back missing tests #26276

Merged
merged 7 commits into from
Mar 24, 2021

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #26265

It seems Phpunit < 9 was case insensitive.
Fixed the phpunit config to target the correct name for the "Core" test
directory.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Remove "ocs-provider" test folder reference as it doesn't exist any
more.
Added back "Test" test subdir and fixed the tests inside.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Fixes issue with Oracle by enforcing the order of the results to check.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Mar 24, 2021
@PVince81
Copy link
Member

1) Tests\Core\Controller\AppPasswordControllerTest::testGetAppPasswordWithAppPassword
TypeError: Argument 7 passed to OC\Core\Controller\AppPasswordController::__construct() must implement interface Symfony\Component\EventDispatcher\EventDispatcherInterface, instance of Mock_IEventDispatcher_7ac0ee84 given, called in /drone/src/tests/Core/Controller/AppPasswordControllerTest.php on line 85

Aha, so that change was only needed on master where we switched to IEventDispatcher.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@MorrisJobke MorrisJobke merged commit ba9e1c0 into stable21 Mar 24, 2021
@MorrisJobke MorrisJobke deleted the backport/26265/stable21 branch March 24, 2021 16:13
@rullzer rullzer mentioned this pull request Mar 26, 2021
2 tasks
@rullzer rullzer mentioned this pull request Apr 8, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants