[TESTS] Fixed write context fatal error

This commit is contained in:
Claudio Sanches 2016-02-11 17:47:03 -02:00
parent 3235ba177c
commit 1d2f4d21e1
1 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,8 @@ class Shipping_Zone extends \WC_Unit_Test_Case {
$zone->clear_locations();
// Assert
$this->assertTrue( empty( $zone->get_zone_locations() ) );
$zone_locations = $zone->get_zone_locations()
$this->assertTrue( empty( $zone_locations ) );
// Clean
\WC_Helper_Shipping_Zones::remove_mock_zones();