wordpress-develop/tests/phpunit/tests/admin
Aaron Jorbin 828d518988 Editor: Universalize functions for checking block editor status.
`use_block_editor_for_post_type` and `use_block_editor_for_post` can be very useful in more contexts than wp-admin, especially when a site is in transition. For example, you may want to do things on init that are different.

Neither function depends on other functions that are available only in wp-admin (other than use_block_editor_for_post() relying on use_block_editor_for_post_type() and an admin-referrer check that's historically gated by a query variable and now also gated by is_admin), therefore  moving them to wp-includes seems both feasible and beneficial

Props ethitter, jorbin.
Fixes #51819.



git-svn-id: https://develop.svn.wordpress.org/trunk@53559 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-23 18:46:18 +00:00
..
includesComment.php Tests: Add missing @covers tags for Tests_Admin_IncludesComment. 2021-09-01 21:58:32 +00:00
includesFile.php Tests: Correct the @ticket reference in a download_url() test with the Content-Disposition header. 2022-02-17 17:38:23 +00:00
includesMisc.php Build/Test Tools: Add missing @covers and visibility for Tests_Admin_includesMisc. 2021-11-02 22:07:49 +00:00
includesPlugin.php Administration: Allow floats for menu positions. 2022-04-08 06:15:02 +00:00
includesPost.php Editor: Universalize functions for checking block editor status. 2022-06-23 18:46:18 +00:00
includesSchema.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
includesScreen.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
includesTemplate.php Tests: Move get_inline_data() tests to a more appropriate place. 2022-05-09 17:56:36 +00:00
includesTheme.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
includesUser.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:12:02 +00:00
wpCommentsListTable.php Tests: Correct @covers tags in WP_Comments_List_Table tests. 2021-11-03 00:54:47 +00:00
wpCommunityEvents.php Tests: Add missing @covers tags for Tests_Admin_wpCommunityEvents. 2021-09-01 22:26:33 +00:00
wpMediaListTable.php Tests: Rename classes in phpunit/tests/admin/ per the naming conventions. 2021-08-19 13:08:43 +00:00
wpPostsListTable.php Tests: Split WP_Posts_List_Table and WP_Comments_List_Table tests into two separate files for clarity. 2021-11-03 00:48:42 +00:00
wpPrivacyRequestsTable.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00