diff --git tests/phpunit/tests/xmlrpc/wp/getUsers.php tests/phpunit/tests/xmlrpc/wp/getUsers.php
index 0cf340c0d6..51c743d371 100644
--- tests/phpunit/tests/xmlrpc/wp/getUsers.php
+++ tests/phpunit/tests/xmlrpc/wp/getUsers.php
@@ -79,6 +79,25 @@ class Tests_XMLRPC_wp_getUsers extends WP_XMLRPC_UnitTestCase {
 		$this->assertCount( 3, array_intersect( array( $author_id, $editor_id, $administrator_id ), wp_list_pluck( $results2, 'user_id' ) ) );
 	}
 
+	/**
+	 * @ticket 56256
+	 */
+	public function test_multiple_capabilities() {
+		$this->make_user_by_role( 'administrator' );
+		$this->make_user_by_role( 'author' );
+
+		$users = get_users(
+			array(
+				'capability' => array(
+					'edit_posts',
+					'edit_pages'
+				),
+				'fields' => 'ID'
+			)
+		);
+		$this->assertCount( 2, $users );
+	}
+
 	public function test_paging_filters() {
 		$administrator_id = $this->make_user_by_role( 'administrator' );
 		if ( is_multisite() ) {
