mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).
While we're at it, remove unnecessary `tearDown()` code. See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,11 +5,6 @@
|
||||
*/
|
||||
class Tests_Admin_includesPost extends WP_UnitTestCase {
|
||||
|
||||
function tearDown() {
|
||||
wp_set_current_user( 0 );
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function test__wp_translate_postdata_cap_checks_contributor() {
|
||||
$contributor_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
|
||||
$editor_id = self::factory()->user->create( array( 'role' => 'editor' ) );
|
||||
|
||||
Reference in New Issue
Block a user