Skip to content

Commit

Permalink
Adjust tests so they work
Browse files Browse the repository at this point in the history
Fixed in statamic/cms#9621 but I want these tests to pass before that release is tagged.
  • Loading branch information
duncanmcclean committed Mar 1, 2024
1 parent 8099471 commit 6420dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Tags/CartTagTest.php
Expand Up @@ -42,7 +42,7 @@
test('user has a cart if cart exists', function () {
fakeCart();

expect((string) tag('{{ if {sc:cart:has} === true }}Has cart{{ else }}No cart{{ /if }}'))->toBe('Has cart');
expect((string) tag('{{ if {sc:cart:has} }}Has cart{{ else }}No cart{{ /if }}'))->toBe('Has cart');
});

test('can get line items', function () {
Expand Down Expand Up @@ -163,7 +163,7 @@

fakeCart($cart);

expect((string) tag('{{ if {sc:cart:free} === true }}Yes{{ else }}No{{ /if }}'))->toBe('Yes');
expect((string) tag('{{ if {sc:cart:free} }}Yes{{ else }}No{{ /if }}'))->toBe('Yes');
});

test('can get cart free status if order is paid', function () {
Expand All @@ -172,7 +172,7 @@

fakeCart($cart);

expect((string) tag('{{ if {sc:cart:free} === true }}Yes{{ else }}No{{ /if }}'))->toBe('No');
expect((string) tag('{{ if {sc:cart:free} }}Yes{{ else }}No{{ /if }}'))->toBe('No');
});

test('can get cart grand total', function () {
Expand Down

0 comments on commit 6420dd8

Please sign in to comment.