mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for tests
This commit is contained in:
parent
ae8a61cbcd
commit
5bcbab3e0a
@ -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
21
tests/Unit/SentryTest.php
Normal 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);
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user