Skip to content

Commit

Permalink
Merge pull request #14 from Safemood/fix-tests
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
Safemood committed Mar 13, 2024
2 parents e5595ab + 4feccc1 commit c9e8edc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/run-tests.yml
Expand Up @@ -20,10 +20,6 @@ jobs:
php: [8.3, 8.2]
laravel: [11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
carbon: ^2.63

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -45,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -23,8 +23,8 @@
"require-dev": {
"laravel/pint": "^1.13.7",
"larastan/larastan": "^2.7.0",
"nunomaduro/collision": "^7.10",
"orchestra/testbench": "^8.18",
"nunomaduro/collision": "^7.0|^8.9",
"orchestra/testbench": "^8.21.1|^9.0.0",
"pestphp/pest": "^2.30",
"pestphp/pest-plugin-arch": "^2.5",
"pestphp/pest-plugin-laravel": "^2.2",
Expand Down
8 changes: 4 additions & 4 deletions tests/CouponManagerTest.php
Expand Up @@ -87,8 +87,8 @@
'code' => 'SINGLEUSE10',
'discount' => 10,
'singleUse' => true,
'startDate' => '2024-02-01',
'endDate' => '2024-02-28',
'startDate' => now(),
'endDate' => now()->addMonth(),
];

$this->couponManager->add($coupon);
Expand All @@ -102,8 +102,8 @@
$coupon = [
'code' => 'TRACKED20',
'discount' => 20,
'startDate' => '2024-02-01',
'endDate' => '2024-02-28',
'startDate' => now(),
'endDate' => now()->addMonth(),
];
$this->couponManager->add($coupon);

Expand Down

0 comments on commit c9e8edc

Please sign in to comment.