@@ -48,10 +48,10 @@ static function (): int {
48
48
/**
49
49
* Test bad od_get_url_metric_freshness_ttl().
50
50
*
51
- * @expectedIncorrectUsage od_get_url_metric_freshness_ttl
52
51
* @covers ::od_get_url_metric_freshness_ttl
53
52
*/
54
53
public function test_bad_od_get_url_metric_freshness_ttl (): void {
54
+ $ this ->setExpectedIncorrectUsage ( 'Filter: 'od_url_metric_freshness_ttl' ' );
55
55
add_filter (
56
56
'od_url_metric_freshness_ttl ' ,
57
57
static function (): int {
@@ -728,13 +728,13 @@ public function data_provider_test_bad_od_get_breakpoint_max_widths(): array {
728
728
*
729
729
* @covers ::od_get_breakpoint_max_widths
730
730
*
731
- * @expectedIncorrectUsage od_get_breakpoint_max_widths
732
731
* @dataProvider data_provider_test_bad_od_get_breakpoint_max_widths
733
732
*
734
733
* @param int[] $breakpoints Breakpoints.
735
734
* @param int[] $expected Expected breakpoints.
736
735
*/
737
736
public function test_bad_od_get_breakpoint_max_widths ( array $ breakpoints , array $ expected ): void {
737
+ $ this ->setExpectedIncorrectUsage ( 'Filter: 'od_breakpoint_max_widths' ' );
738
738
add_filter (
739
739
'od_breakpoint_max_widths ' ,
740
740
static function () use ( $ breakpoints ): array {
@@ -766,10 +766,10 @@ static function (): string {
766
766
/**
767
767
* Test bad od_get_url_metrics_breakpoint_sample_size().
768
768
*
769
- * @expectedIncorrectUsage od_get_url_metrics_breakpoint_sample_size
770
769
* @covers ::od_get_url_metrics_breakpoint_sample_size
771
770
*/
772
771
public function test_bad_od_get_url_metrics_breakpoint_sample_size (): void {
772
+ $ this ->setExpectedIncorrectUsage ( 'Filter: 'od_url_metrics_breakpoint_sample_size' ' );
773
773
add_filter (
774
774
'od_url_metrics_breakpoint_sample_size ' ,
775
775
static function (): int {
0 commit comments