2017 © Pedro Peláez
 

library laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

image

pbmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  • Tuesday, July 31, 2018
  • by collicore
  • Repository
  • 1 Watchers
  • 0 Stars
  • 405 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 19 % Grown

The README.md

Laravel Browser Kit Macro

Latest Version on Packagist Software License Quality Score Total Downloads, (*1)

This package allows you to seamlessly use the Browser Kit features in more modern Laravel installations., (*2)

Requirements

  • Laravel 10
  • PHP 8.2 or higher

, (*3)

❤️ 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 and check out our latest premium package: Inertia Table. Keeping track of issues and pull requests takes time, but we're happy to help!, (*4)

Installation

You can install the package via composer:, (*5)

``` bash composer require pbmedia/laravel-browser-kit-macro --dev, (*6)


If you're not using Package Discovery, add the Service Provider to your `config/app.php` file: ```php ProtoneMedia\LaravelBrowserKitMacro\BrowserKitMacroServiceProvider::class,

Upgrading to v5

  • The namespace has changed to ProtoneMedia\LaravelBrowserKitMacro. Please update your code accordingly.

Usage

This package adds a browserKit method to the TestResponse class. It accepts a Closure which receives the Browser Kit TestCase as its first argument., (*7)

/** @test */
public function it_presents_a_registration_form()
{
    $this->get('register')
        ->assertStatus(200)
        ->browserKit(function ($test) {
            $test->seeElement('input', ['name' => 'email']);
        });
}

Testing

bash $ composer test, (*8)

Other Laravel packages

  • Inertia Table: The Ultimate Table for Inertia.js with built-in Query Builder.
  • Laravel Blade On Demand: Laravel package to compile Blade templates in memory.
  • Laravel Cross Eloquent Search: Laravel package to search through multiple Eloquent models.
  • Laravel Eloquent Scope as Select: Stop duplicating your Eloquent query scopes and constraints in PHP. This package lets you re-use your query scopes and constraints by adding them as a subquery.
  • Laravel FFMpeg: This package provides an integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.
  • Laravel MinIO Testing Tools: Run your tests against a MinIO S3 server.
  • Laravel Mixins: A collection of Laravel goodies.
  • Laravel Paddle: Paddle.com API integration for Laravel with support for webhooks/events.
  • Laravel Task Runner: Write Shell scripts like Blade Components and run them locally or on a remote server.
  • Laravel Verify New Email: This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.
  • Laravel XSS Protection: Laravel Middleware to protect your app against Cross-site scripting (XSS). It sanitizes request input, and it can sanatize Blade echo statements.

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email code@protone.media instead of using the issue tracker., (*10)

Credits

License

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

The Versions

31/07 2018

dev-master

9999999-dev https://github.com/pascalbaljetmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  Sources   Download

MIT

The Requires

 

The Development Requires

pascalbaljetmedia laravel-browser-kit

31/07 2018

2.0.0

2.0.0.0 https://github.com/pascalbaljetmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  Sources   Download

MIT

The Requires

 

The Development Requires

pascalbaljetmedia laravel-browser-kit

31/07 2018

dev-laravel-5.6

dev-laravel-5.6 https://github.com/pascalbaljetmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  Sources   Download

MIT

The Requires

 

The Development Requires

pascalbaljetmedia laravel-browser-kit

31/01 2018

1.0.1

1.0.1.0 https://github.com/pascalbaljetmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  Sources   Download

MIT

The Requires

 

The Development Requires

pascalbaljetmedia laravel-browser-kit

31/01 2018

1.0.0

1.0.0.0 https://github.com/pascalbaljetmedia/laravel-browser-kit-macro

A macro to use the Laravel 5.3 testing layer inside your Laravel 5.4+ tests

  Sources   Download

MIT

The Requires

 

The Development Requires

pascalbaljetmedia laravel-browser-kit