Fix tests

This commit is contained in:
Adrien Foulon 2019-03-13 11:58:59 +01:00 committed by GitHub
parent a520cb5f44
commit a316101358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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.' );
}