Refresh Loaded Attribute Test Case Added
This commit is contained in:
parent
643384eade
commit
a8ab1e3aa3
|
|
@ -36,6 +36,7 @@ class BookingCronCest
|
||||||
['booking_product_id' => $bookingProducts[$i]->id]);
|
['booking_product_id' => $bookingProducts[$i]->id]);
|
||||||
|
|
||||||
$products[$i]->refresh();
|
$products[$i]->refresh();
|
||||||
|
$products[$i]->refreshloadedAttributeValues();
|
||||||
$I->assertNotFalse($products[$i]->status);
|
$I->assertNotFalse($products[$i]->status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,6 +44,7 @@ class BookingCronCest
|
||||||
|
|
||||||
for ($i=0; $i<$index; $i++) {
|
for ($i=0; $i<$index; $i++) {
|
||||||
$products[$i]->refresh();
|
$products[$i]->refresh();
|
||||||
|
$products[$i]->refreshloadedAttributeValues();
|
||||||
|
|
||||||
if ($bookingProducts[$i]->available_to < Carbon::now()) {
|
if ($bookingProducts[$i]->available_to < Carbon::now()) {
|
||||||
$I->assertEquals(0, $products[$i]->status);
|
$I->assertEquals(0, $products[$i]->status);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue