mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -936,7 +936,7 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase {
|
||||
);
|
||||
$uuid = wp_generate_uuid4();
|
||||
|
||||
$wp_customize = $manager = new WP_Customize_Manager(
|
||||
$manager = new WP_Customize_Manager(
|
||||
array(
|
||||
'changeset_uuid' => $uuid,
|
||||
)
|
||||
@@ -1039,7 +1039,7 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase {
|
||||
$this->assertEquals( $previous_saved_data, json_decode( get_post( $post_id )->post_content, true ) );
|
||||
|
||||
// Attempt a non-transactional/incremental update.
|
||||
$wp_customize = $manager = new WP_Customize_Manager(
|
||||
$manager = new WP_Customize_Manager(
|
||||
array(
|
||||
'changeset_uuid' => $uuid,
|
||||
)
|
||||
@@ -1100,7 +1100,8 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase {
|
||||
$action_counts[ $action_name ] = did_action( $action_name );
|
||||
}
|
||||
|
||||
$wp_customize = $manager = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
|
||||
$manager = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
|
||||
$wp_customize = $manager;
|
||||
do_action( 'customize_register', $wp_customize );
|
||||
$manager->add_setting(
|
||||
'scratchpad',
|
||||
@@ -1142,7 +1143,8 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase {
|
||||
// Test revisions.
|
||||
add_post_type_support( 'customize_changeset', 'revisions' );
|
||||
$uuid = wp_generate_uuid4();
|
||||
$wp_customize = $manager = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
|
||||
$manager = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
|
||||
$wp_customize = $manager;
|
||||
do_action( 'customize_register', $manager );
|
||||
|
||||
$manager->set_post_value( 'blogname', 'Hello Surface' );
|
||||
|
||||
@@ -10,7 +10,8 @@ class Tests_WP_Customize_Section extends WP_UnitTestCase {
|
||||
protected static $user_ids = array();
|
||||
|
||||
public static function wpSetUpBeforeClass( $factory ) {
|
||||
self::$user_ids[] = self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) );
|
||||
self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) );
|
||||
self::$user_ids[] = self::$admin_id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user