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

Automatically add phpunit group name to a plugin php test #16615

Merged
merged 3 commits into from Oct 27, 2020
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 27, 2020

fix #16612

fixing this here as this way we can restart all plugin tests and make sure they are included in the test runs

@@ -58,6 +58,19 @@ abstract class SystemTestCase extends TestCase
*/
public static $fixture;

public function setGroups(array $groups): void
Copy link
Member Author

Choose a reason for hiding this comment

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

it's officially an internal method but seemed for me easiest way to make this work. Not sure there's another way.

@@ -38,6 +39,13 @@ public function setUp(): void
parent::setUp();
}

public function test_TestCaseHasSetGroupsMethod()
Copy link
Member Author

Choose a reason for hiding this comment

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

added a test so we would notice when this method is no longer there

@tsteur tsteur added the Needs Review PRs that need a code review label Oct 27, 2020
@tsteur tsteur added this to the 4.0.0-RC milestone Oct 27, 2020
@sgiehl sgiehl merged commit 8f703bb into 4.x-dev Oct 27, 2020
@sgiehl sgiehl deleted the autogroup branch October 27, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHPUnit tests, add group for current plugin automatically
2 participants