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

Ensure modHashing::getHash is limited to modHash instances #16320

Merged
merged 1 commit into from Dec 8, 2022

Conversation

Mark-H
Copy link
Collaborator

@Mark-H Mark-H commented Dec 2, 2022

What does it do?

Makes sure the requested modHash implementation is actually a modHash implementation, right now it can instantiate any class.

Also brings tests for this file to 100% as a test for codecov. :D

Why is it needed?

Wanted to make sure codecov works properly. Found issue writing test. Win.

How to test

Covered by tests.

Related issue(s)/PR(s)

#16317

@Mark-H Mark-H requested a review from opengeek as a code owner December 2, 2022 15:14
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Dec 2, 2022
Also brings tests for this file to 100% as a test for codecov. :D
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2022

Codecov Report

Base: 16.91% // Head: 16.91% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (83034b4) compared to base (f2bdbec).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##                3.x   #16320   +/-   ##
=========================================
  Coverage     16.91%   16.91%           
- Complexity    10446    10447    +1     
=========================================
  Files           561      561           
  Lines         38028    38028           
=========================================
+ Hits           6432     6433    +1     
+ Misses        31596    31595    -1     
Impacted Files Coverage Δ
core/src/Revolution/Hashing/modHashing.php 100.00% <100.00%> (+3.84%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@opengeek opengeek added this to the v3.0.3 milestone Dec 8, 2022
@opengeek opengeek merged commit 680df53 into modxcms:3.x Dec 8, 2022
@Mark-H Mark-H deleted the tests-modhash branch December 8, 2022 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants