diff --git a/tests/phpunit/tests/general/wpEnqueueCodeEditor.php b/tests/phpunit/tests/general/wpEnqueueCodeEditor.php new file mode 100644 index 0000000000000..055fb7be16c8f --- /dev/null +++ b/tests/phpunit/tests/general/wpEnqueueCodeEditor.php @@ -0,0 +1,31 @@ +user->create(); + wp_set_current_user( $user_id ); + wp_get_current_user()->syntax_highlighting = 'false'; + + $this->assertFalse( + wp_enqueue_code_editor( + array( + 'type' => 'text/css', + ) + ) + ); + } +}