Download the PHP package joshhanley/livewire-dusk-extension without Composer

On this page you can find all versions of the php package joshhanley/livewire-dusk-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package livewire-dusk-extension

Livewire Dusk Extension

Livewire Dusk Extension adds support for testing individual Livewire components in your app with Laravel Dusk.

Getting Started

It's recommended you read the documentation of these packages before going through this document:

Installation

To install through composer, run the following command from terminal:

Usage

To use this package you need to:

Ensure Laravel Dusk is installed and configured

Ensure Laravel Dusk is installed and configured as per the Laravel Dusk documentation

Update DuskTestCase

Laravel Dusk creates a file tests\DuskTestCase.php which needs to be updated to extend LivewireDuskExtension

Configure Tests Directory and Namespace

This package assumes you have a tests\Browser directory at the root of your project and that it's namespace is Tests\Browser.

If you have a different configuration, you can publish the Livewire Dusk Extension config and specify your tests namespaces and directories.

To publish the config run

Then open the config and update the test-directories array with your tests namespace and directory details, with the namespace being the key and the directory is the value.

Create a Test

You can now create a dusk test that uses $browser->livewire() to test your component.

To do this, pass the class name of the component you want to test into the $browser->livewire() method.

Then you can chain assertions from the livewire() call.

Using a Test Component

If you don't want to test a Livewire component that exists in your app, and instead want to test something like a Blade Component that has Livewire interactivity, then you can create a test Livewire component.

In the same directory as your test, create a Livewire component and reference that in your test. This package will autoload the component for you.

Then in your test component you can include any Blade Components or Alpine, etc that you want to test out.

Troubleshooting

This is just a convenience wrapper around Laravel Dusk to make testing Livewire Components in your app easier.

Consult the documentation for the relevant packages for troubleshooting.


All versions of livewire-dusk-extension with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
livewire/livewire Version ^2.3|dev-master
laravel/dusk Version ^7.0|dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joshhanley/livewire-dusk-extension contains the following files

Loading the files please wait ....