Skip to content

Commit bdd70a0

Browse files
committed
feat: add badges
1 parent 447a5aa commit bdd70a0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Laravel Bus Fluentable
2+
3+
[![PHPUnit](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/phpunit.yml/badge.svg)](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/phpunit.yml)
4+
[![Static Analysis](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/phpstan.yml/badge.svg)](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/phpstan.yml)
5+
[![Check Style](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/rust17/laravel-bus-fluentable/actions/workflows/php-cs-fixer.yml)
6+
17
When using Laravel, the current approach to testing batched jobs, as shown below, is somewhat unconventional:
28

39
```

src/Bus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function assertPendingBatched(callable $callback)
2121

2222
PHPUnit::assertTrue(
2323
collect($busFake->dispatchedBatches())
24-
->filter(fn ($batch) =>$callback(new FluentPendingBatch($busFake, $batch->jobs)))
24+
->filter(fn ($batch) => $callback(new FluentPendingBatch($busFake, $batch->jobs)))
2525
->isNotEmpty(),
2626
"The expected batch was not dispatched."
2727
);

0 commit comments

Comments
 (0)