Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.05 KB

File metadata and controls

46 lines (37 loc) · 1.05 KB

DEVELOPMENT

Installing

  1. Clone the repository:
    git clone https://github.com/uwla/ltags
  2. Install dependencies:
    composer install
  3. Refresh composer:
    composer dump-autoload

Or, in a single line:

git clone https://github.com/uwla/ltags && cd ltags && composer install && composer dump-autoload

Project structure

  • database/migrations/: database migration files
  • src/: source files
  • src/Contracts/: interfaces used in the package
  • src/Models/: database eloquent models
  • src/Traits/: traits provided by the package
  • src/TagServiceProvider.php: this Service Provider publishes migration files
  • tests/: test files setup including mocking components
  • tests/Feature/: integration tests

Testing

To run the tests you need pdo_sqlite extension installed and enabled in php.ini.

  • Run all tests:
    composer test
  • Run a single test (for example, TagTest):
    composer test ./tests/Feature/TagTest.php