Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function test_wp_check_existing_file_names( $filename, $files, $expected
*
* @return array[]
*/
public function data_wp_check_existing_file_names() {
public static function data_wp_check_existing_file_names() {
return array(
'no size' => array(
'filename' => 'filename.php',
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/media/getMediaEmbeddedInContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function test_returns_expected_media( $content, $types, $expected ) {
*
* @return array[]
*/
public function data_content() {
public static function data_content() {
$audio = '<audio preload="none"><source /></audio>';
$video = '<video preload="none"><source /></video>';
$iframe = '<iframe src="https://example.com/embed" width="700"></iframe>';
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public function test_get_metadata_with_non_existent_object_id( $expected, $args
$this->assertSame( $expected, get_metadata( 'user', ...$args ) );
}

public function data_get_metadata_with_non_existent_object_id() {
public static function data_get_metadata_with_non_existent_object_id() {
return array(
'should return empty array for default `$meta_key` and `$single` values' => array(
'expected' => array(),
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function tear_down() {
*
* @return array
*/
public function get_data_to_test_wp_is_mobile(): array {
public static function get_data_to_test_wp_is_mobile(): array {
return array(
'mobile client hint' => array(
'headers' => array(
Expand Down
Loading