Fix tests
This commit is contained in:
parent
a520cb5f44
commit
a316101358
|
@ -47,6 +47,7 @@ class WC_Tests_Admin_Report extends WC_Unit_Test_Case {
|
|||
) );
|
||||
|
||||
$this->assertEquals( 1, $data->total_orders, 'Expected to see one completed order in the report.' );
|
||||
$report->_maybe_update_transients();
|
||||
$this->assertNotEmpty( get_transient( 'wc_admin_report' ), 'Results should be cached in a transient.' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue