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

MockCache::getCacheInfo() #4689

Merged
merged 2 commits into from May 16, 2021
Merged

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented May 15, 2021

Description
When testing with MockCache using an unknown cache agent it is impossible to determine what happens in the cache without using private property inspectors. This PR expands MockCache::cacehInfo() to return the current keys so it is easy to make assertions like "did use cache".

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • n/a User guide updated
  • Conforms to style guide

@MGatner MGatner changed the title MockCache::cacheInfo() MockCache::getCacheInfo() May 15, 2021
system/Test/Mock/MockCache.php Outdated Show resolved Hide resolved
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
@MGatner MGatner merged commit 461b965 into codeigniter4:develop May 16, 2021
@MGatner MGatner deleted the mock-cache-info branch May 16, 2021 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants