PHPackages                             tonysm/turbo-laravel-test-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. tonysm/turbo-laravel-test-helpers

Abandoned → [tonysm/turbo-laravel](/?search=tonysm%2Fturbo-laravel)Library[Testing &amp; Quality](/categories/testing)

tonysm/turbo-laravel-test-helpers
=================================

A couple of testing helpers for applications using Turbo Laravel.

0.10.0(4y ago)1342MITPHPPHP ^7.4|^8.0

Since Jan 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tonysm/turbo-laravel-test-helpers)[ Packagist](https://packagist.org/packages/tonysm/turbo-laravel-test-helpers)[ Docs](https://github.com/tonysm/turbo-laravel-test-helpers)[ RSS](/packages/tonysm-turbo-laravel-test-helpers/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (7)Versions (13)Used By (0)

Turbo Laravel Test Helpers
==========================

[](#turbo-laravel-test-helpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/841fa7813bbb53e6b1b8b85823a1caaa5d99fe0033d24d948ae9ae9ffd4a8784/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6e79736d2f747572626f2d6c61726176656c2d746573742d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tonysm/turbo-laravel-test-helpers)[![GitHub Tests Action Status](https://github.com/tonysm/turbo-laravel-test-helpers/workflows/Tests/badge.svg)](https://github.com/tonysm/turbo-laravel-test-helpers/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/4922bc66d7ed07333099212ddd96fcd8f3d5353032ee12a8bd6a870cd429fd94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6e79736d2f747572626f2d6c61726176656c2d746573742d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tonysm/turbo-laravel-test-helpers)

This package adds a couple macros and assertion helpers to your application using [Turbo Laravel](https://github.com/tonysm/turbo-laravel). This was built separately because it has different dependencies.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tonysm/turbo-laravel-test-helpers --dev
```

Usage
-----

[](#usage)

Add the trait to your test case. This will make the `$this->turbo()` method available. This will add the correct header to your response, like so:

```
use Tonysm\TurboLaravelTestHelpers\Testing\InteractsWithTurbo;

class ExampleTest extends TestCase
{
    use InteractsWithTurbo;

    /** @test */
    public function turbo_stream_test()
    {
        $response = $this->turbo()->post('my-route');

        $response->assertTurboStream();

        // Checks if one of the Turbo Stream responses matches this criteria.
        $response->assertHasTurboStream($target = 'users', $action = 'append');

        // Checks if there is no Turbo Stream tag for the criteria.
        $response->assertDoesntHaveTurboStream($target = 'empty_users', $action = 'remove');
    }

    /** @test */
    public function turbo_native_shows()
    {
        $response = $this->turboNative()->get('my-route');

        $response->assertSee('Only rendered in Turbo Native');
    }
}
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tony Messias](https://github.com/tonysm)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

12

Last Release

1785d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a12e62d99ec6a83e48b2d79c7353417d82cecdca757a6766c5c32f22ceb6c55c?d=identicon)[tonysm](/maintainers/tonysm)

---

Top Contributors

[![tonysm](https://avatars.githubusercontent.com/u/1178621?v=4)](https://github.com/tonysm "tonysm (29 commits)")

---

Tags

tonysmturbo-laravel-test-helpers

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tonysm-turbo-laravel-test-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/tonysm-turbo-laravel-test-helpers/health.svg)](https://phpackages.com/packages/tonysm-turbo-laravel-test-helpers)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2021.0M277](/packages/drupal-core-dev)[zenstruck/browser

A fluent interface for your Symfony functional tests.

2272.2M21](/packages/zenstruck-browser)[nunomaduro/laravel-mojito

A lightweight package for testing Laravel views.

368435.5k11](/packages/nunomaduro-laravel-mojito)[spatie/laravel-visit

Quickly visit any route of your Laravel app

15614.6k](/packages/spatie-laravel-visit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
