2017 © Pedro Peláez
 

library testing

Provides a testing Layout file with the contents you define for every test you create with mallow:test command.

image

mallow/testing

Provides a testing Layout file with the contents you define for every test you create with mallow:test command.

  • Friday, January 22, 2016
  • by MallowPhp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

mallow/testing

Install

composer require mallow/testing dev-master, (*1)

Define the Service Providers in config/app.php

 Mallow\Testing\MallowTestingLayout::class,

Usage

  1. There is a default TestcaseLayout in /vendor/mallowphp/testing/src/BaseTestcase/LayoutTest.php .
  2. The default layout is defined for checking the API in JSON.So the input and output must be in JSON.
  3. You can also define your custom layout.Paste your testing code in /vendor/mallowphp/testing/src/BaseTestcase/LayoutTest.php .But,define it with class called "LayoutTest".
  4. If you want to run testcases without storing data in your main database.You can run following command(optional)., (*2)

    php artisan mallow:local-test, (*3)

    This will automatically run the testcases in local memory without storing in your original database., (*4)

  5. Then run command,, (*5)

    php artisan mallow:test {Name of your test class}, (*6)

  6. This testing is for testing your basic CRUD and the responses you get after the POST,PUT data into database., (*7)

The Versions

22/01 2016

dev-master

9999999-dev

Provides a testing Layout file with the contents you define for every test you create with mallow:test command.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar MallowPhp

22/01 2016

1.0

1.0.0.0

Provides a testing Layout file with the contents you define for every test you create with mallow:test command.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar MallowPhp