Skip to content

XTestCase: set to lowest possible visibility#20

Merged
jrfnl merged 1 commit into
developfrom
feature/10-xtestcase-method-visibility
Jun 6, 2021
Merged

XTestCase: set to lowest possible visibility#20
jrfnl merged 1 commit into
developfrom
feature/10-xtestcase-method-visibility

Conversation

@jrfnl

@jrfnl jrfnl commented Jun 6, 2021

Copy link
Copy Markdown
Collaborator

This aligns the visibility of the methods in the XTestCase class with the minimum acceptable visibility to allow the methods to work.
This also ensures that the visibility used in the class now matches that of the code sample in the README.

Native method name Annotation Minimum visibility
setUpBeforeClass() @beforeClass public
setUp() @before protected
tearDown() @after protected
tearDownAfterClass() @afterClass public

Fixes #10

This aligns the visibility of the methods in the `XTestCase` class with the minimum acceptable visibility to allow the methods to work.
This also ensures that the visibility used in the class now matches that of the code sample in the README.

| Native method name     | Annotation     | Minimum visibility |
|------------------------|----------------|--------------------|
| `setUpBeforeClass()`   | `@beforeClass` | `public`           |
| `setUp()`              | `@before`      | `protected`        |
| `tearDown()`           | `@after`       | `protected`        |
| `tearDownAfterClass()` | `@afterClass`  | `public`           |

Fixes #10
@jrfnl jrfnl added this to the 0.x Next Release milestone Jun 6, 2021
@jrfnl jrfnl merged commit aa96145 into develop Jun 6, 2021
@jrfnl jrfnl deleted the feature/10-xtestcase-method-visibility branch June 6, 2021 03:13
@jrfnl jrfnl removed the yoastcs/qa label Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect visibility of fixture overload methods when using XTestCase in the documentation

1 participant