PHPackages                             openeuropa/oe\_testing\_utils - 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. openeuropa/oe\_testing\_utils

ActiveLibrary

openeuropa/oe\_testing\_utils
=============================

Testing utilities for OpenEuropa projects

1.0.0-alpha1(today)034↑2635.3%[1 PRs](https://github.com/openeuropa/oe_testing_utils/pulls)EUPL-1.2PHPPHP &gt;=8.3CI passing

Since Jul 27Pushed todayCompare

[ Source](https://github.com/openeuropa/oe_testing_utils)[ Packagist](https://packagist.org/packages/openeuropa/oe_testing_utils)[ Docs](https://github.com/openeuropa/oe_testing_utils)[ RSS](/packages/openeuropa-oe-testing-utils/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

OpenEuropa Testing Utilities
============================

[](#openeuropa-testing-utilities)

Generic testing utilities for OpenEuropa components.

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

[](#installation)

The recommended way of installing the package is via [Composer](https://getcomposer.org):

```
composer require --dev openeuropa/oe_testing_utils
```

Usage
-----

[](#usage)

### CachedDatabaseInstallTrait

[](#cacheddatabaseinstalltrait)

Speeds up Drupal functional tests by caching the post-install database state. The first test with a given module/theme/profile fingerprint runs a full site install and dumps the resulting tables to disk. Subsequent tests with the same fingerprint restore the dump instead of running the installer.

Add the trait to your functional test and enable it:

```
use Drupal\Tests\BrowserTestBase;
use OpenEuropa\TestingUtilities\Traits\CachedDatabaseInstallTrait;

class MyFunctionalTest extends BrowserTestBase {

  use CachedDatabaseInstallTrait;

  /**
   * {@inheritdoc}
   */
  protected function setUp(): void {
    $this->cacheDbInstall = TRUE;
    parent::setUp();
  }

}
```

Notes:

- Only the MySQL database driver is supported.
- Dumps are stored in `sites/default/files/functional-test-dumps`. Delete this directory to force a fresh install.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3b1f4079f9a82f6dd88fe6577d1256b4ecbbccbcd4a4ec9bea7c2fd6f72b99a?d=identicon)[DIGIT-CORE](/maintainers/DIGIT-CORE)

---

Top Contributors

[![upchuk](https://avatars.githubusercontent.com/u/5848933?v=4)](https://github.com/upchuk "upchuk (4 commits)")[![nagyad](https://avatars.githubusercontent.com/u/22004498?v=4)](https://github.com/nagyad "nagyad (2 commits)")

### Embed Badge

![Health badge](/badges/openeuropa-oe-testing-utils/health.svg)

```
[![Health](https://phpackages.com/badges/openeuropa-oe-testing-utils/health.svg)](https://phpackages.com/packages/openeuropa-oe-testing-utils)
```

PHPackages © 2026

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