shlinkio/shlink-test-utils

Testing utils for Shlink

Installs: 46 428

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Type:project

pkg:composer/shlinkio/shlink-test-utils

v4.3.1 2025-02-13 08:52 UTC

README

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

Build Status Latest Stable Version License Paypal donate

Installation

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.

TestHelper

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