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

[NFC] Fix PHPUnit8 Deprecation Warnings in api_v3 and Civi Test Suites #20380

Merged

Conversation

seamuslee001
Copy link
Contributor

Overview

Warnings show about deprecated test methods

Before

Warnings show

After

No Warnings

ping @eileenmcnaughton

@civibot
Copy link

civibot bot commented May 22, 2021

(Standard links)

@civibot civibot bot added the master label May 22, 2021
@seamuslee001 seamuslee001 force-pushed the api_v3_civi_phpunit8_warnings branch from 61603a1 to 44c312c Compare May 22, 2021 04:24
@@ -3026,7 +3026,7 @@ public function testContactCreationPermissions($version) {
$config = CRM_Core_Config::singleton();
$config->userPermissionClass->permissions = ['access CiviCRM'];
$result = $this->callAPIFailure('contact', 'create', $params);
$this->assertContains('failed', $result['error_message'], 'lacking permissions should not be enough to create a contact');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamuslee001 can we hold off this PR until the one that I have on this file is merged - since it's a fairly large challenging cleanup on this file & I don't want this to make it stale once it is passing

@seamuslee001 seamuslee001 force-pushed the api_v3_civi_phpunit8_warnings branch 2 times, most recently from 0a3c66b to 65b1032 Compare May 22, 2021 21:12
@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton I believe your other one has been merged now

@seamuslee001 seamuslee001 force-pushed the api_v3_civi_phpunit8_warnings branch from 65b1032 to 1bae74d Compare May 22, 2021 23:15
@seamuslee001 seamuslee001 force-pushed the api_v3_civi_phpunit8_warnings branch from 1bae74d to a12620a Compare May 23, 2021 01:34
@eileenmcnaughton eileenmcnaughton merged commit 8e1366e into civicrm:master May 23, 2021
@eileenmcnaughton eileenmcnaughton deleted the api_v3_civi_phpunit8_warnings branch May 23, 2021 07:30
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 this pull request may close these issues.

2 participants