New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

cerbero/pest-plugin-laravel-octane

Pest plugin to test Laravel applications powered by Octane.
16 24
Install
composer require cerbero/pest-plugin-laravel-octane
Latest Version:1.0.0
PHP:^8.0
License:MIT
Last Updated:Aug 9, 2021
Links: GitHub  ·  Packagist
Maintainer: cerbero

⛽ Laravel Octane (Pest Plugin)

Author PHP Version Laravel Version Octane Compatibility Build Status Latest Version Software License PSR-12 Total Downloads

Pest plugin to test Laravel applications powered by Octane.

Install

Via Composer

composer require --dev cerbero/pest-plugin-laravel-octane

Usage

Once the plugin is installed you are ready to go! Combine the elegant syntax of Pest and Octane Testbench:

test('Octane application')
    ->assertOctaneCacheMissing('foo')
    ->assertOctaneTableMissing('example', 'row')
    ->assertOctaneTableCount('example', 0)
    ->expectsConcurrencyResults([1, 2, 3])
    ->get('octane/route')
    ->assertOk()
    ->assertOctaneCacheHas('foo', 'bar')
    ->assertOctaneTableHas('example', 'row.votes', 123)
    ->assertOctaneTableCount('example', 1);

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email andrea.marco.sartori@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

cerbero/octane-testbench

Set of utilities to test Laravel applications powered by Octane.

4,287 44
pestphp/pest

The elegant PHP Testing Framework.

101,630,363 11,753
pestphp/pest-dev-tools

Dev requirements for Pest, The elegant PHP Testing Framework.

213,539 10
nckrtl/pestphp-monorepo

Pest with test-impact analysis for Composer monorepos and Git worktrees.

50,083 1
lightspeedphp/lightspeed

Run tests faster by splitting them across nodes.

80 2

Version History

Version Released PHP License
1.0.0 ^8.0 MIT