Changeset 56673 for trunk/tests/phpunit/tests/blocks/blockHooks.php
- Timestamp:
- 09/25/2023 08:42:45 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/blockHooks.php
r56634 r56673 50 50 array( 51 51 'block_hooks' => array( 52 'tests/hooked-at-before' => 'before', 53 'tests/hooked-at-after' => 'after', 52 'tests/hooked-at-before' => 'before', 53 'tests/hooked-at-after' => 'after', 54 'tests/hooked-at-before-and-after' => 'before', 54 55 ), 55 56 ) … … 59 60 array( 60 61 'block_hooks' => array( 61 'tests/hooked-at-before' => 'before', 62 'tests/hooked-at-after' => 'after', 63 'tests/hooked-at-first-child' => 'first_child', 64 'tests/hooked-at-last-child' => 'last_child', 62 'tests/hooked-at-before' => 'before', 63 'tests/hooked-at-after' => 'after', 64 'tests/hooked-at-before-and-after' => 'after', 65 'tests/hooked-at-first-child' => 'first_child', 66 'tests/hooked-at-last-child' => 'last_child', 65 67 ), 66 68 ) … … 97 99 'block hooked at the last child position' 98 100 ); 101 $this->assertSame( 102 array( 103 'tests/injected-one' => 'before', 104 'tests/injected-two' => 'after', 105 ), 106 get_hooked_blocks( 'tests/hooked-at-before-and-after' ), 107 'block hooked before one block and after another' 108 ); 109 $this->assertSame( 110 array( 111 'tests/injected-one' => 'before', 112 ), 113 get_hooked_blocks( 'tests/hooked-at-before-and-after', 'before' ), 114 'block hooked before one block and after another, filtered for before' 115 ); 99 116 } 100 117 }
Note: See TracChangeset
for help on using the changeset viewer.