PHPackages                             drupaltest/queue-runner-trait - 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. drupaltest/queue-runner-trait

ActiveDrupal-dtt[Testing &amp; Quality](/categories/testing)

drupaltest/queue-runner-trait
=============================

A Drupal queue runner trait for use with Drupal Test Traits.

v1.2.0(3y ago)246.1k↓35.5%1GPL-2.0-or-laterPHP

Since Aug 22Pushed 3y ago3 watchersCompare

[ Source](https://github.com/drupaltest/queue-runner-trait)[ Packagist](https://packagist.org/packages/drupaltest/queue-runner-trait)[ RSS](/packages/drupaltest-queue-runner-trait/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

Queue Runner Trait
==================

[](#queue-runner-trait)

Provides a trait for use with the [Drupal Test Traits](https://gitlab.com/weitzman/drupal-test-traits) library.

[![Build Status](https://camo.githubusercontent.com/397aa51a35ee5e3fd8e2b330dd3b4595e2a6084978de20dfbdb58cdd711f7200/68747470733a2f2f7472617669732d63692e636f6d2f64727570616c746573742f71756575652d72756e6e65722d74726169742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/drupaltest/queue-runner-trait)

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

[](#installation)

```
composer require --dev drupaltest/queue-runner-trait

```

Usage
-----

[](#usage)

```
class SampleTestWithQueueRunner extends ExistingSiteBase
{
    use QueueRunnerTrait;

    protected function tearDown()
    {
        // Empty a given queue after the test has finished.
        $this->clearQueue('my_queue_name');
    }

    public function testSomeQueue()
    {
        // Do something that adds an item to a queue.

        // Run the queue by name.
        $this->runQueue('my_queue_name');
    }
}
```

See the included [test](./tests/QueueRunnerTraitTest.php) for a detailed example.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~668 days

Total

3

Last Release

1123d ago

### Community

Maintainers

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

---

Top Contributors

[![jhedstrom](https://avatars.githubusercontent.com/u/76833?v=4)](https://github.com/jhedstrom "jhedstrom (10 commits)")[![weitzman](https://avatars.githubusercontent.com/u/7740?v=4)](https://github.com/weitzman "weitzman (2 commits)")

---

Tags

drupal-8phpphpunit

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/drupaltest-queue-runner-trait/health.svg)

```
[![Health](https://phpackages.com/badges/drupaltest-queue-runner-trait/health.svg)](https://phpackages.com/packages/drupaltest-queue-runner-trait)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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