diff --git a/tests/test-rest-attachments-controller.php b/tests/test-rest-attachments-controller.php
index <HASH>..<HASH> 100644
--- a/tests/test-rest-attachments-controller.php
+++ b/tests/test-rest-attachments-controller.php
@@ -80,13 +80,16 @@ class WP_Test_REST_Attachments_Controller extends WP_Test_REST_Post_Type_Control
 			'slug',
 			'status',
 			), $keys );
-		$this->assertEqualSets( array(
+		$media_types = array(
 			'application',
 			'video',
 			'image',
 			'audio',
-			'text',
-		), $data['endpoints'][0]['args']['media_type']['enum'] );
+		);
+		if ( ! is_multisite() ) {
+			$media_types[] = 'text';
+		}
+		$this->assertEqualSets( $media_types, $data['endpoints'][0]['args']['media_type']['enum'] );
 	}
 
 	public function test_get_items() {
Multisite doesn't support `text`