Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Jan 27, 2025
1 parent 1a5b8ca commit 0f803a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/api/Feature/Domain/Cart/JsonApi/V1/ReadCartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
use Illuminate\Support\Facades\Event;
use Lunar\Base\CartSessionInterface;

uses(TestCase::class, RefreshDatabase::class);
uses(TestCase::class, RefreshDatabase::class)
->group('carts', 'carts.read');

beforeEach(function () {
/** @var TestCase $this */
Expand Down Expand Up @@ -42,7 +43,7 @@
->assertSuccessful()
->assertFetchedOne($cart);

})->group('carts', 'carts.read');
});

it('can read cart with cart lines included', function () {
/** @var TestCase $this */
Expand Down Expand Up @@ -70,7 +71,7 @@
$response
->assertSuccessful();

})->group('carts');
});

it('can merge carts when user logs in', function () {
/** @var TestCase $this */
Expand Down Expand Up @@ -168,4 +169,4 @@
'purchasable_id' => $line['attributes']['purchasable_id'],
]);
}
})->group('carts', 'carts.read')->skip('Merging carts is temporarily disabled.');
})->skip('Merging carts is temporarily disabled.');

0 comments on commit 0f803a7

Please sign in to comment.