Skip to content

Commit

Permalink
Merge branch 'main' into queue-fake
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Apr 3, 2023
2 parents b46f263 + d174ba8 commit ff2fe68
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.3
uses: dependabot/fetch-metadata@v1.3.6
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@1.0.0
uses: aglipanci/laravel-pint-action@2.2.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.0]
laravel: [9.*]
php: [8.2, 8.1, 8.0]
laravel: [10.*, 9.*]
os: [ubuntu-latest, windows-latest]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 10.*
php: 8.0

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

Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to `laravel-dusk-fakes` will be documented in this file.

## 1.3.1 - 2023-02-09

- Fix for restoring corrupted storage

## 1.3.0 - 2023-02-06

- Support for Laravel 10

## 1.2.0 - 2022-12-09

- Support for PHP 8.2

## 1.1.0 - 2022-09-05

Support for testing Mails
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Total Downloads](https://img.shields.io/packagist/dt/protonemedia/laravel-dusk-fakes.svg?style=flat-square)](https://packagist.org/packages/protonemedia/laravel-dusk-fakes)
[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/protonemedia/laravel-dusk-fakes)

## Support this package!
## Sponsor this package!

❤️ We proudly support the community by developing Laravel packages and giving them away for free. If this package saves you time or if you're relying on it professionally, please consider [sponsoring the maintenance and development](https://github.com/sponsors/pascalbaljet). Keeping track of issues and pull requests takes time, but we're happy to help!

Expand Down
12 changes: 5 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@
}
],
"require": {
"php": "^8.0|^8.1",
"illuminate/contracts": "^9.0",
"php": "^8.0|^8.1|^8.2",
"illuminate/contracts": "^10.0",
"laravel/dusk": "^7.0",
"spatie/invade": "^1.1"
},
"conflict": {
"laravel/framework": "<9.15.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nesbot/carbon": "^2.66",
"nunomaduro/collision": "^6.0",
"orchestra/testbench": "^7.0",
"orchestra/testbench": "^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Mails/PersistentMailFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function cleanStorage()
public function loadMails(): self
{
$unserialized = file_exists($this->storage)
? unserialize(file_get_contents($this->storage))
? rescue(fn () => unserialize(file_get_contents($this->storage)), [], false)
: [];

$this->mailables = $unserialized['mailables'] ?? [];
Expand Down
2 changes: 1 addition & 1 deletion src/Notifications/PersistentNotificationFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function cleanStorage()
public function loadNotifications(): self
{
$this->notifications = file_exists($this->storage)
? unserialize(file_get_contents($this->storage))
? rescue(fn () => unserialize(file_get_contents($this->storage)), [], false)
: [];

return $this;
Expand Down

0 comments on commit ff2fe68

Please sign in to comment.