mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-16 10:34:26 +00:00
Code is Poetry.
WordPress' code just... wasn't. This is now dealt with. Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS. Fixes #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -38,9 +38,11 @@ class Tests_XMLRPC_Basic extends WP_XMLRPC_UnitTestCase {
|
||||
*/
|
||||
function test_multicall_invalidates_all_calls_after_invalid_call() {
|
||||
$editor_id = $this->make_user_by_role( 'editor' );
|
||||
$post_id = self::factory()->post->create( array(
|
||||
'post_author' => $editor_id,
|
||||
) );
|
||||
$post_id = self::factory()->post->create(
|
||||
array(
|
||||
'post_author' => $editor_id,
|
||||
)
|
||||
);
|
||||
|
||||
$method_calls = array(
|
||||
// Valid login
|
||||
@@ -98,11 +100,11 @@ class Tests_XMLRPC_Basic extends WP_XMLRPC_UnitTestCase {
|
||||
* @ticket 36586
|
||||
*/
|
||||
function test_isStruct_on_non_numerically_indexed_array() {
|
||||
$value = new IXR_Value( array( '0.0' => 100 ) );
|
||||
$value = new IXR_Value( array( '0.0' => 100 ) );
|
||||
|
||||
$return = "<struct>\n";
|
||||
$return .= " <member><name>0.0</name><value><int>100</int></value></member>\n";
|
||||
$return .= "</struct>";
|
||||
$return .= '</struct>';
|
||||
|
||||
$this->assertXmlStringEqualsXmlString( $return, $value->getXML() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user