test: pin clock in loan-vocabulary test; docs: bump suite counts to 1400/3755
PurchaseResourceTest::it_translates_e_commerce_columns_into_loan_vocabulary relied on the real wall clock falling inside the fixture's loan window (2026-05-14..2026-05-28); once that window passed, the loan resolved to `overdue` and the test failed. Freeze the clock inside the window like its sibling tests already do. Update the README test/assertion badges and the Testing section to the current suite size (1400 tests, 3755 assertions) after the subscription-checkout tests.
This commit is contained in:
parent
d4008caec0
commit
30dc3755d2
|
|
@ -3,8 +3,8 @@
|
|||
# Laravel Shop
|
||||
|
||||
[](https://github.com/blax-software/laravel-shop/actions/workflows/tests.yml)
|
||||
[](#testing)
|
||||
[](#testing)
|
||||
[](#testing)
|
||||
[](#testing)
|
||||
[](https://packagist.org/packages/blax-software/laravel-shop)
|
||||
[](https://packagist.org/packages/blax-software/laravel-shop)
|
||||
[](https://packagist.org/packages/blax-software/laravel-shop)
|
||||
|
|
@ -192,7 +192,7 @@ booking, Stripe sync and the event surface — so host applications can lean
|
|||
on the behaviour with confidence.
|
||||
|
||||
```
|
||||
Tests: 1349, Assertions: 3641
|
||||
Tests: 1400, Assertions: 3755
|
||||
```
|
||||
|
||||
CI runs the full suite on every push (see the badge above). To run it
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@ class PurchaseResourceTest extends TestCase
|
|||
#[Test]
|
||||
public function it_translates_e_commerce_columns_into_loan_vocabulary(): void
|
||||
{
|
||||
// Pin "now" inside the loan window so status resolves to active
|
||||
// regardless of the wall clock (the fixture dates are fixed).
|
||||
Carbon::setTestNow(Carbon::parse('2026-05-20 10:00:00'));
|
||||
|
||||
$loan = $this->loan();
|
||||
|
||||
$payload = PurchaseResource::make($loan)->toArray(Request::create('/'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue