Skip to content

Commit b4c40ed

Browse files
committed
Fix file path in tests
1 parent 2f00c14 commit b4c40ed

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/phpunit/tests/admin/wpOnThisDay.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
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
*/
99
class 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.

0 commit comments

Comments
 (0)