Changeset 56559 for trunk/tests/phpunit/tests/blocks/context.php
- Timestamp:
- 09/12/2023 03:21:02 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/blocks/context.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/context.php
r56547 r56559 110 110 'gutenberg/contextWithoutDefault', 111 111 ), 112 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {112 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) { 113 113 $provided_context[] = $block->context; 114 114 … … 150 150 array( 151 151 'uses_context' => array( 'postId', 'postType' ), 152 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {152 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) { 153 153 $provided_context[] = $block->context; 154 154 … … 183 183 array( 184 184 'uses_context' => array( 'example' ), 185 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {185 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) { 186 186 $provided_context[] = $block->context; 187 187 … … 191 191 ); 192 192 193 $filter_block_context = static function ( $context ) {193 $filter_block_context = static function ( $context ) { 194 194 $context['example'] = 'ok'; 195 195 return $context;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)