faissaloux/pest-plugin-database

Pest plugin for databases structure
4
Install
composer require faissaloux/pest-plugin-database
Latest Version:v0.2.0
PHP:^8.2
Maintainer: faissaloux

PEST PLUGIN DATABASE

A pest plugin to test your database structure.

Tests Packagist Version Total Downloads on Packagist Packagist License

Requirements

  • php ^8.2
  • pestphp ^3.0 | ^4.0
  • Laravel ^11.0 | ^12.0

Installation

composer require faissaloux/pest-plugin-database --dev

Supported Drivers

  • MySQL
  • SQLite
  • PostgreSQL

Expectations

Check driver.

expect()->driver->toBe('mysql');

Check database name.

expect()->database->toBe('database');

Check tables in your database.

expect()->database->tables->toBe(['users', 'posts']);

Check number of tables in your database.

expect()->database->tables->toHaveCount(9);

Support

If you encounter any issues or have questions, feel free to open an issue on this repository's Issues page. I'll try to respond as soon as possible.