Changeset 51657 for trunk/tests/phpunit/tests/blocks/wpBlock.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/wpBlock.php
r51568 r51657 276 276 'core/dynamic', 277 277 array( 278 'render_callback' => function() {278 'render_callback' => static function() { 279 279 return 'b'; 280 280 }, … … 297 297 'core/greeting', 298 298 array( 299 'render_callback' => function( $attributes, $content, $block ) {299 'render_callback' => static function( $attributes, $content, $block ) { 300 300 return sprintf( 'Hello from %s', $block->name ); 301 301 }, … … 367 367 ), 368 368 ), 369 'render_callback' => function( $block_attributes ) {369 'render_callback' => static function( $block_attributes ) { 370 370 return sprintf( 371 371 'Hello %s%s', … … 392 392 'core/outer', 393 393 array( 394 'render_callback' => function( $block_attributes, $content ) {394 'render_callback' => static function( $block_attributes, $content ) { 395 395 return $content; 396 396 }, … … 400 400 'core/inner', 401 401 array( 402 'render_callback' => function() {402 'render_callback' => static function() { 403 403 return 'b'; 404 404 },
Note: See TracChangeset
for help on using the changeset viewer.