Fixes for tests

This commit is contained in:
David Bomba 2020-06-27 15:14:06 +10:00
parent ae8a61cbcd
commit 5bcbab3e0a
2 changed files with 21 additions and 8 deletions

View File

@ -29,14 +29,6 @@ class StoreUserRequest extends Request
public function authorize() : bool
{
// info(print_r(auth()->user()->toArray(),1));
// info(print_r(auth()->user()->company_user->toArray(),1));
//
$queries = \DB::getQueryLog();
$count = count($queries);
info(request()->method() . ' - ' . request()->url() . ": $count queries - ");
return auth()->user()->isAdmin();
}

21
tests/Unit/SentryTest.php Normal file
View File

@ -0,0 +1,21 @@
<?php
namespace Tests\Unit;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class SentryTest extends TestCase
{
public function testSentryFiresAppropriately()
{
$e = new \Exception("Test Fire");
app('sentry')->captureException($e);
$this->assertTrue(true);
}
}