[glotpress-updates] [GlotPress] #482: Fatal error when running unit tests with persistent object cache
GlotPress
noreply at wordpress.org
Sun Aug 9 21:10:34 UTC 2015
#482: Fatal error when running unit tests with persistent object cache
---------------------+-----------------
Reporter: ocean90 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.0
Component: General | Version:
Keywords: |
---------------------+-----------------
`PHP Fatal error: Call to a member function can() on a non-object in
/t/tests/test_permissions.php on line 48`
This is because the user couldn't be created because the same name exists
already.
We should implement `flush_cache()` from the
[https://core.trac.wordpress.org/browser/trunk/tests/phpunit/includes/testcase.php?marks=170-182#L170
WordPress testcase.php].
We should also use the user factory for creating test users.
--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/482>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'
More information about the glotpress-updates
mailing list