Advertisement · 728 × 90
#
Hashtag
#PestPHP
Advertisement · 728 × 90

Testing event-driven logging means testing the full chain:

User action -> Event -> Listener -> Service -> DB record -> Geo job

Each link can break independently. each link gets its own test.

A logging system that silently breaks is worse than no logging.

#Laravel #PestPHP #Testing #LaraFoundry

1 0 0 0

This single Pest test proves the override system works

Revoke beats role. Grant beats role. Hierarchy intact.

#LaraFoundry #Laravel #Testing #PestPHP

1 0 0 0

LaraFoundry auth test: banned users can still access support tickets.

Because if someone gets banned by mistake, they need a way to appeal.

Edge cases matter.

#LaraFoundry #Laravel #PestPHP #UX

0 0 0 0
Preview
GitHub - Gromatics/httpfixtures: A Laravel package that generates fake JSON responses for HTTP testing using Http::fake(). It simplifies the creation of mock HTTP responses by integrating with FakerPH... A Laravel package that generates fake JSON responses for HTTP testing using Http::fake(). It simplifies the creation of mock HTTP responses by integrating with FakerPHP to generate realistic test d...

I’ve built a Laravel package to generate HTTP fixtures with Faker data for your tests. Easily fake real HTTP responses in a factory-like format.
👉 github.com/Gromatics/ht...

#Laravel #PHP #Testing #OpenSource #DevTools #Faker #PestPHP #HttpFake #BlueskyDev

6 1 1 0
Post image

🧪 With this snippet, you can extend your Pest tests using Laravel’s base test case, apply RefreshDatabase, and set global headers before each test. Clean, DRY, and Laravel-friendly! #Laravel #PestPHP #Testing

0 0 0 0
Post image

🧪 If you're testing file uploads with Laravel and Pest, putting Storage::fake('public') in a beforeEach keeps your system clean and your tests safe! #Laravel #PestPHP #Testing

2 0 0 0

Custom #expectations in #PestPHP let you modify test value on the fly within callbacks, creating visual symmetry between regular assertions and fake object testing
🔄 Seamlessly switch between regular and fake object expectations

0 0 1 0
Post image

#Testing: Unified Expectations API with #PestPHP for Custom Fakes 🧪

#PHP #Laravel #testing fakes with unified API approach: transform $client->assertSent() into expect($client)->toHaveSent() for cleaner test code

🧵👇#TDD

1 0 1 0

🔹 Updated for #Laravel 12.0 and #Livewire 3.0 with multilingual support
🔹 Includes #PestPHP for testing, #LivewireAlerts for notifications, and #LaravelPint for code style
🔹 Simple installation process with comprehensive documentation

0 0 1 0
Preview
PHP Annotated – October 2024 | The PhpStorm Blog Welcome to the October edition of PHP Annotated! This recap is carefully handcrafted and brings you the most interesting developments in the PHP community over the past couple of months, so you don’t

📢 #PHP 8.4 RC3 ready for testing! #PHPStorm 2024.3 EAP opens with full PHP 8.4 support. #ThePHPFoundation joins #opensource pledge & launches Web Services Tool. New #Composer 2.8.0 & #PestPHP v3 released. #Laravel #Symfony turns 19! 🎂

blog.jetbrains.com/phpstorm/202...

1 0 0 0
Post image

Hey #laravel and #filamentphp devs, don't forget to define your current panel in your test with #pestphp, it will save you time !!

Real life experience 🤣

By the way RTFM !!

3 0 0 0
Preview
A Guide to Architecture Testing Presets in Pest 3 Discover how Pest 3 simplifies architecture testing with pre-configured presets, making it effortless to enforce best practices and maintain code quality in your projects.

A Guide to Architecture #Testing Presets in Pest 3 benjamincrozat.com/pest-3-archi...

#php #pestphp

0 0 0 0
Preview
GitHub - spatie/pest-plugin-route-testing: Make sure all routes in your Laravel app are ok Make sure all routes in your Laravel app are ok. Contribute to spatie/pest-plugin-route-testing development by creating an account on GitHub.

Effortlessly test all #php #Laravel routes with pest-plugin-route-testing 🚀

✅ Verify all routes
🔍 Test specific routes with wildcards
🔗 Handle model bindings
🛠️ Customizable assertions

#pestphp #testing

github.com/spatie/pest-...

1 0 0 0
Pest in PHP is good, actually! Pest is a testing framework for PHP you can install via composer that makes writing your tests a lot easier than you think!

I wrote a little blurb about my new found fondness of testing in PHP. Previously, almost a decade ago, getting tests to work was a pain. Golang was a breath of fresh air.

Today, in 2024, testing on PHP is good actually if you use Pest

javorszky.co.uk/2024/05/06/p...

#weblogpomo2024 #php #Pestphp

0 0 0 0