Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Sep 9, 2021
1 parent 792e65d commit 5f442fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MicroweberPackages/Shop/tests/CheckoutTest.php
Expand Up @@ -17,6 +17,7 @@ class CheckoutTest extends TestCase

private function _addProductToCart($title)
{
app()->database_manager->extended_save_set_permission(true);

$productPrice = rand(1, 4444);

Expand All @@ -26,7 +27,7 @@ private function _addProductToCart($title)
'subtype' => 'product',
'custom_fields_advanced' => array(
array('type' => 'dropdown', 'name' => 'Color', 'value' => array('Purple', 'Blue')),
array('type' => 'price', 'name' => 'Price', 'value' => '9.99'),
array('type' => 'price', 'name' => 'Price', 'value' => $productPrice),

),
'is_active' => 1,);
Expand All @@ -51,6 +52,7 @@ private function _addProductToCart($title)

public function testCheckout()
{
empty_cart();

\Config::set('mail.transport', 'array');

Expand Down

0 comments on commit 5f442fc

Please sign in to comment.