Skip to content

Commit 79b1b7a

Browse files
Update test
1 parent 52fc462 commit 79b1b7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/php/test-class-amp-theme-support.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,13 +1205,13 @@ public function test_filter_admin_bar_style_loader_tag( $setup_callback, $assert
12051205
}
12061206

12071207
/**
1208-
* Test filter_admin_bar_style_loader_tag when ->deps is not an array.
1208+
* Test filter_admin_bar_style_loader_tag when ->deps is an empty array.
12091209
*
12101210
* @covers \AMP_Theme_Support::filter_admin_bar_style_loader_tag()
12111211
*/
1212-
public function test_filter_admin_bar_style_loader_tag_non_array() {
1212+
public function test_filter_admin_bar_style_loader_tag_empty_array() {
12131213
wp_enqueue_style( 'admin-bar' );
1214-
$GLOBALS['wp_styles']->registered['admin-bar']->deps = null;
1214+
$GLOBALS['wp_styles']->registered['admin-bar']->deps = [];
12151215
$tag = '<link rel="stylesheet" id="dashicons-css" href="https://example.com/wp-includes/css/dashicons.css?ver=5.3.2" media="all" />'; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet
12161216
$this->assertEquals( $tag, AMP_Theme_Support::filter_admin_bar_style_loader_tag( $tag, 'baz' ) );
12171217
}

0 commit comments

Comments
 (0)