Changeset 56704 for trunk/tests/phpunit/tests/blocks/blockHooks.php
- Timestamp:
- 09/26/2023 11:47:18 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/blockHooks.php
r56673 r56704 71 71 $this->assertSame( 72 72 array( 73 'tests/injected-one' => 'before', 74 'tests/injected-two' => 'before', 73 'before' => array( 74 'tests/injected-one', 75 'tests/injected-two', 76 ), 75 77 ), 76 78 get_hooked_blocks( 'tests/hooked-at-before' ), … … 79 81 $this->assertSame( 80 82 array( 81 'tests/injected-one' => 'after', 82 'tests/injected-two' => 'after', 83 'after' => array( 84 'tests/injected-one', 85 'tests/injected-two', 86 ), 83 87 ), 84 88 get_hooked_blocks( 'tests/hooked-at-after' ), … … 87 91 $this->assertSame( 88 92 array( 89 'tests/injected-two' => 'first_child', 93 'first_child' => array( 94 'tests/injected-two', 95 ), 90 96 ), 91 97 get_hooked_blocks( 'tests/hooked-at-first-child' ), … … 94 100 $this->assertSame( 95 101 array( 96 'tests/injected-two' => 'last_child', 102 'last_child' => array( 103 'tests/injected-two', 104 ), 97 105 ), 98 106 get_hooked_blocks( 'tests/hooked-at-last-child' ), … … 101 109 $this->assertSame( 102 110 array( 103 'tests/injected-one' => 'before', 104 'tests/injected-two' => 'after', 111 'before' => array( 112 'tests/injected-one', 113 ), 114 'after' => array( 115 'tests/injected-two', 116 ), 105 117 ), 106 118 get_hooked_blocks( 'tests/hooked-at-before-and-after' ), 107 119 'block hooked before one block and after another' 108 120 ); 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 );116 121 } 117 122 }
Note: See TracChangeset
for help on using the changeset viewer.