shlinkio/shlink-test-utils

Testing utils for Shlink

v1.4.0 2020-02-15 20:05 UTC

This package is auto-updated.

Last update: 2020-03-13 20:46:52 UTC


README

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

Build Status Scrutinizer Code Quality 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.