Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/phpunit/tests/blocks/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ public function test_register_block_style_handle_uses_correct_core_stylesheet( $
}
}

public function data_register_block_style_handle_uses_correct_core_stylesheet() {
public static function data_register_block_style_handle_uses_correct_core_stylesheet() {
return array(
'block with style' => array(
WPINC . '/blocks/archives/block.json',
Expand Down Expand Up @@ -1078,7 +1078,7 @@ public function test_block_registers_with_args_override_returns_false_when_name_
*
* @return array[]
*/
public function data_register_block_registers_with_args_override_returns_false_when_name_is_missing() {
public static function data_register_block_registers_with_args_override_returns_false_when_name_is_missing() {
return array(
'no block.json file and no name argument' => array(
'file' => '', // No block.json file.
Expand Down Expand Up @@ -1350,7 +1350,7 @@ public function test_register_block_type_accepts_editor_script_array( $editor_sc
*
* @return array
*/
public function data_register_block_type_accepts_editor_script_array() {
public static function data_register_block_type_accepts_editor_script_array() {
return array(
'an empty array' => array(
'editor_script' => array(),
Expand Down Expand Up @@ -1416,7 +1416,7 @@ public function test_register_block_type_throws_doing_it_wrong( $editor_script,
*
* @return array
*/
public function data_register_block_type_throws_doing_it_wrong() {
public static function data_register_block_type_throws_doing_it_wrong() {
return array(
'a non-string array' => array(
'editor_script' => array( null, false, true, -1, 0, 1, -1.0, 0.0, 1.0, INF, NAN, new stdClass() ),
Expand Down Expand Up @@ -1607,7 +1607,7 @@ public function test_register_block_style_name_contains_spaces( array $block_sty
*
* @return array
*/
public function data_register_block_style_name_contains_spaces() {
public static function data_register_block_style_name_contains_spaces() {
return array(
'multiple spaces' => array(
array(
Expand Down
Loading