Fix the `test_widget_renders_completed_task_count` unit test (#45509)
This commit is contained in:
parent
4cd89e4beb
commit
28e7351180
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Fix a failing unit test.
|
|
@ -191,7 +191,7 @@ class WC_Admin_Dashboard_Setup_Test extends WC_Unit_Test_Case {
|
||||||
if ( $completed_tasks_count === $tasks_count ) {
|
if ( $completed_tasks_count === $tasks_count ) {
|
||||||
$this->assertEmpty( $this->get_widget_output() );
|
$this->assertEmpty( $this->get_widget_output() );
|
||||||
} else {
|
} else {
|
||||||
$this->assertMatchesRegularExpression( "/Step {$step_number} of 5/", $this->get_widget_output() );
|
$this->assertMatchesRegularExpression( "/Step {$step_number} of {$tasks_count}/", $this->get_widget_output() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue