Changeset 52010 for trunk/tests/phpunit/tests/blocks/wpBlock.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/wpBlock.php
r51894 r52010 42 42 } 43 43 44 function filter_render_block( $content, $parsed_block ) {44 public function filter_render_block( $content, $parsed_block ) { 45 45 return 'Original: "' . $content . '", from block "' . $parsed_block['blockName'] . '"'; 46 46 } … … 49 49 * @ticket 49927 50 50 */ 51 function test_constructor_assigns_properties_from_parsed_block() {51 public function test_constructor_assigns_properties_from_parsed_block() { 52 52 $this->registry->register( 'core/example', array() ); 53 53 … … 67 67 * @ticket 49927 68 68 */ 69 function test_constructor_assigns_block_type_from_registry() {69 public function test_constructor_assigns_block_type_from_registry() { 70 70 $block_type_settings = array( 71 71 'attributes' => array( … … 92 92 * @ticket 49927 93 93 */ 94 function test_lazily_assigns_attributes_with_defaults() {94 public function test_lazily_assigns_attributes_with_defaults() { 95 95 $this->registry->register( 96 96 'core/example', … … 126 126 * @ticket 49927 127 127 */ 128 function test_lazily_assigns_attributes_with_only_defaults() {128 public function test_lazily_assigns_attributes_with_only_defaults() { 129 129 $this->registry->register( 130 130 'core/example', … … 154 154 * @ticket 49927 155 155 */ 156 function test_constructor_assigns_context_from_block_type() {156 public function test_constructor_assigns_context_from_block_type() { 157 157 $this->registry->register( 158 158 'core/example', … … 175 175 * @ticket 49927 176 176 */ 177 function test_constructor_maps_inner_blocks() {177 public function test_constructor_maps_inner_blocks() { 178 178 $this->registry->register( 'core/example', array() ); 179 179 … … 191 191 * @ticket 49927 192 192 */ 193 function test_constructor_prepares_context_for_inner_blocks() {193 public function test_constructor_prepares_context_for_inner_blocks() { 194 194 $this->registry->register( 195 195 'core/outer', … … 227 227 * @ticket 49927 228 228 */ 229 function test_constructor_assigns_merged_context() {229 public function test_constructor_assigns_merged_context() { 230 230 $this->registry->register( 231 231 'core/example', … … 271 271 * @ticket 49927 272 272 */ 273 function test_render_static_block_type_returns_own_content() {273 public function test_render_static_block_type_returns_own_content() { 274 274 $this->registry->register( 'core/static', array() ); 275 275 $this->registry->register( … … 293 293 * @ticket 49927 294 294 */ 295 function test_render_passes_block_for_render_callback() {295 public function test_render_passes_block_for_render_callback() { 296 296 $this->registry->register( 297 297 'core/greeting', … … 314 314 * @ticket 49927 315 315 */ 316 function test_render_applies_render_block_filter() {316 public function test_render_applies_render_block_filter() { 317 317 $this->registry->register( 'core/example', array() ); 318 318 … … 334 334 * @ticket 46187 335 335 */ 336 function test_render_applies_dynamic_render_block_filter() {336 public function test_render_applies_dynamic_render_block_filter() { 337 337 $this->registry->register( 'core/example', array() ); 338 338 … … 354 354 * @ticket 49927 355 355 */ 356 function test_passes_attributes_to_render_callback() {356 public function test_passes_attributes_to_render_callback() { 357 357 $this->registry->register( 358 358 'core/greeting', … … 388 388 * @ticket 49927 389 389 */ 390 function test_passes_content_to_render_callback() {390 public function test_passes_content_to_render_callback() { 391 391 $this->registry->register( 392 392 'core/outer',
Note: See TracChangeset
for help on using the changeset viewer.