mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Tests: Add additional tests covering Block Hooks registration
Props ockham. See #59346. Follow-up [56587]. git-svn-id: https://develop.svn.wordpress.org/trunk@56607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
8
tests/phpunit/data/blocks/hooked-block-error/block.json
Normal file
8
tests/phpunit/data/blocks/hooked-block-error/block.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "tests/hooked-block-error",
|
||||
"description": "A block that throws an error because it tries to hook a block to itself.",
|
||||
"blockHooks": {
|
||||
"tests/hooked-block-error": "before",
|
||||
"tests/other-block": "after"
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,10 @@
|
||||
"root": ".wp-block-notice"
|
||||
},
|
||||
"blockHooks": {
|
||||
"core/post-content": "before"
|
||||
"tests/before": "before",
|
||||
"tests/after": "after",
|
||||
"tests/first-child": "firstChild",
|
||||
"tests/last-child": "lastChild"
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
|
||||
Reference in New Issue
Block a user