diff --git a/tests/php/test-class-amp-theme-support.php b/tests/php/test-class-amp-theme-support.php index ef9861578ee..15b7e002859 100644 --- a/tests/php/test-class-amp-theme-support.php +++ b/tests/php/test-class-amp-theme-support.php @@ -1205,13 +1205,13 @@ public function test_filter_admin_bar_style_loader_tag( $setup_callback, $assert } /** - * Test filter_admin_bar_style_loader_tag when ->deps is not an array. + * Test filter_admin_bar_style_loader_tag when ->deps is an empty array. * * @covers \AMP_Theme_Support::filter_admin_bar_style_loader_tag() */ - public function test_filter_admin_bar_style_loader_tag_non_array() { + public function test_filter_admin_bar_style_loader_tag_empty_array() { wp_enqueue_style( 'admin-bar' ); - $GLOBALS['wp_styles']->registered['admin-bar']->deps = null; + $GLOBALS['wp_styles']->registered['admin-bar']->deps = []; $tag = ''; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet $this->assertEquals( $tag, AMP_Theme_Support::filter_admin_bar_style_loader_tag( $tag, 'baz' ) ); }