Skip to content

Instantly share code, notes, and snippets.

View petemolinero's full-sized avatar

Pete Molinero petemolinero

View GitHub Profile
@petemolinero
petemolinero / tests
Last active January 8, 2019 00:47
How to run MB Tests
Review:
https://medbridge.atlassian.net/wiki/spaces/TRAIN/pages/619217130/How+to+run+PHPUnit+on+local+Current
cd into tests
run:
../vendor/phpunit/phpunit/phpunit -c phpunit.xml --filter InstructorAPITest --debug
SHOW IN CONSOLE
fwrite(STDERR, print_r($myDebugVar, true));
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Statamic\Facades\Entry;
use Illuminate\Support\Str;
use Statamic\Eloquent\Entries\EntryModel;
use Statamic\Eloquent\Structures\TreeModel;
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Statamic\Facades\Collection;
use Statamic\Facades\Entry;
use Illuminate\Support\Str;
use Carbon\Carbon;