Testing utils for Shlink

v1.5.0 2020-06-28 07:02 UTC

This package is auto-updated.

Last update: 2020-10-25 16:37:09 UTC


Helpers and utilities to run different types of tests in Shlink.

Build Status Scrutinizer Code Quality Latest Stable Version License Paypal donate


Install this tool using composer.

composer require shlinkio/shlink-test-utils --dev

Base test classes

  • ApiTestCase for API e2e tests.
  • DbTestCase for database integration tests.

Both classes extends [phpunit]'s TestCase class.


A TestHelper class is provided too. It has methods to initialize a testing database and to seed the database fixtures.