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)249.8k↓67.6%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 2d 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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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

1169d 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

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

30919.1k](/packages/acquia-orca)

PHPackages © 2026

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