Changeset 51657 for trunk/tests/phpunit/tests/blocks/register.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/register.php
r51599 r51657 511 511 */ 512 512 public function test_filter_block_registration() { 513 $filter_registration = function( $args, $name ) {513 $filter_registration = static function( $args, $name ) { 514 514 $args['attributes'] = array( $name => array( 'type' => 'boolean' ) ); 515 515 return $args; … … 529 529 */ 530 530 public function test_filter_block_registration_metadata() { 531 $filter_metadata_registration = function( $metadata ) {531 $filter_metadata_registration = static function( $metadata ) { 532 532 $metadata['apiVersion'] = 3; 533 533 return $metadata; … … 547 547 */ 548 548 public function test_filter_block_registration_metadata_settings() { 549 $filter_metadata_registration = function( $settings, $metadata ) {549 $filter_metadata_registration = static function( $settings, $metadata ) { 550 550 $settings['api_version'] = $metadata['apiVersion'] + 1; 551 551 return $settings;
Note: See TracChangeset
for help on using the changeset viewer.