wordpress-develop/tests/phpunit/tests/blocks
Jb Audras 5fb4b61339 Editor: Ensure block style name does not contain spaces before creating the class.
This change adds a check to ensure there is no spaces in block style variation names before generating the class. Returns `false` and a `_doing_it_wrong()` message if a space is detected.

Props amustaque97, costdev, hellofromtonya, pbiron, SergeyBiryukov, afragen.
Fixes #54296.


git-svn-id: https://develop.svn.wordpress.org/trunk@52261 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-28 13:51:23 +00:00
..
context.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
editor.php Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1. 2021-11-08 14:26:27 +00:00
register.php Editor: Ensure block style name does not contain spaces before creating the class. 2021-11-28 13:51:23 +00:00
render.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +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 Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
wpBlock.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +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 Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpBlockTypeRegistry.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00