orchestra/testbench-browser-kit

Laravel Browser Kit Testing Helper for Packages Development

v3.8.0 2019-02-26 13:09 UTC

README

Join the chat at https://gitter.im/orchestral/testbench

Testbench Component is a simple package that is supposed to help you write tests for your Laravel package, especially when there is routing involved.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Version Compatibility

Laravel Testbench Browser Kit
5.5.x 3.5.x
5.6.x 3.6.x
5.7.x. 3.7.x
5.8.x 3.8.x

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require-dev": {
        "orchestra/testbench-browser-kit": "^3.5"
    }
}

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require --dev "orchestra/testbench-browser-kit=^3.5"

Usage

Testbench Browser Kit added Browser Kit testing support for Laravel 5.4 and above. All you need to do is to replace Orchestra\Testbench\TestCase to Orchestra\Testbench\BrowserKit\TestCase and you should be good to go.