File tree Expand file tree Collapse file tree
tests/phpunit/tests/admin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22/**
3- * Tests for the WP_On_This_Day class.
3+ * Tests for the WP_Dashboard_Widget_On_This_Day class.
44 *
55 * @group admin
66 *
7- * @coversDefaultClass WP_On_This_Day
7+ * @coversDefaultClass WP_Dashboard_Widget_On_This_Day
88 */
99class Tests_Admin_wpOnThisDay extends WP_UnitTestCase {
1010 /**
11- * Reflection method for invoking WP_On_This_Day ::extract_excerpt_text().
11+ * Reflection method for invoking WP_Dashboard_Widget_On_This_Day ::extract_excerpt_text().
1212 *
1313 * @var ReflectionMethod
1414 */
1515 private static $ extract_excerpt_text ;
1616
1717 public static function wpSetUpBeforeClass ( WP_UnitTest_Factory $ factory ) {
18- require_once ABSPATH . 'wp-admin/includes/class-wp-on-this-day.php ' ;
18+ require_once ABSPATH . 'wp-admin/includes/class-wp-dashboard-widget- on-this-day.php ' ;
1919
20- self ::$ extract_excerpt_text = new ReflectionMethod ( 'WP_On_This_Day ' , 'extract_excerpt_text ' );
20+ self ::$ extract_excerpt_text = new ReflectionMethod ( 'WP_Dashboard_Widget_On_This_Day ' , 'extract_excerpt_text ' );
2121 if ( PHP_VERSION_ID < 80100 ) {
2222 self ::$ extract_excerpt_text ->setAccessible ( true );
2323 }
2424 }
2525
2626 /**
27- * Invokes WP_On_This_Day ::extract_excerpt_text().
27+ * Invokes WP_Dashboard_Widget_On_This_Day ::extract_excerpt_text().
2828 *
2929 * @param string $source HTML source to extract text from.
3030 * @param int $max_chars Approximate character limit before truncation.
You can’t perform that action at this time.
0 commit comments