You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarly to this, the application's cache is not cleared between each tests, this took me quite some time to realize while trying to write some tests for code that interact with the cache.
I solved it by clearing the cache myself in the tearDown() using this line:
Current Behavior
When running tests which involve the
Formatter
, the formatter cache is not cleared at the end of the test runSteps to Reproduce
flarum/markdown
flarum/markdown
By adding
To the test class, behaviour is as would be expected.
Expected Behavior
The
Formatter
cache should be cleared as part oftearDown()
Screenshots
No response
Environment
Output of
php flarum info
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: