wordpress-develop/tests/phpunit/tests/blocks
Sergey Biryukov 999b52eb75 Coding Standards: Fix a non-snake_case function name in WP_Block tests.
As the filter is only intended for a single test, it can be converted to a closure instead of being declared as a function in the global namespace. The `remove_filter()` part is redundant, as `WP_UnitTestCase_Base` saves the state of filter-related globals at `set_up()` and restores them on `tear_down()`.

Follow-up to [54175].

Props jrf, SergeyBiryukov.
See #56791.

git-svn-id: https://develop.svn.wordpress.org/trunk@54917 602fd350-edb4-49c9-b593-d223f7449a82
2022-11-30 18:30:57 +00:00
..
context.php Tests: Correctly use the factory method. 2022-09-06 22:03:10 +00:00
editor.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
getBlockTemplates.php Tests: Move the basic get_block_templates() test to the dedicated file. 2022-09-18 13:08:33 +00:00
register.php Blocks: Allow arrays for deprecated asset types in block registration. 2022-10-24 14:14:25 +00:00
render.php Blocks: Add new render property in block.json for block types 2022-09-12 13:12:21 +00:00
renderCommentTemplate.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2022-11-29 12:32:37 +00:00
renderReusable.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
serialize.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
supportedStyles.php Editor: Introduces fluid typography and uses Style Engine. 2022-09-20 15:41:44 +00:00
wpBlock.php Coding Standards: Fix a non-snake_case function name in WP_Block tests. 2022-11-30 18:30:57 +00:00
wpBlockList.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpBlockParser.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
wpBlockType.php Tests: Replace some occurrences of assertEquals() with assertSame(). 2022-10-07 01:02:07 +00:00
wpBlockTypeRegistry.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00