mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
c2616412c0
* Add laravel routes to javascript This will clean up a lot of passing of urls. Adds a route() helper and everything... This commit also moves the customfield fetching to only be fetched once and shared with each file, rather than once for each file. * Try to fix travis unit test things. * Downgrade doctrine/inflector for php5 * Attempt to occasional seeder issues on travis if the asset does not generate validatable data. * Update sql dump for functional tests. * Try to fix api tests.
17 lines
334 B
PHP
17 lines
334 B
PHP
<?php
|
|
namespace Helper;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
// here you can define custom actions
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
class Api extends \Codeception\Module
|
|
{
|
|
public function setupDatabase()
|
|
{
|
|
Artisan::call('migrate');
|
|
Artisan::call('db:seed');
|
|
}
|
|
}
|