Remove reference to old trait
This commit is contained in:
parent
6b70443515
commit
6e16f589bd
5 changed files with 0 additions and 15 deletions
|
@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
|
||||||
|
|
||||||
use App\Models\ReportTemplate;
|
use App\Models\ReportTemplate;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Tests\Support\InteractsWithSettings;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class CreateReportTemplateTest extends TestCase
|
class CreateReportTemplateTest extends TestCase
|
||||||
{
|
{
|
||||||
use InteractsWithSettings;
|
|
||||||
|
|
||||||
public function testSavingReportTemplateRequiresCorrectPermission()
|
public function testSavingReportTemplateRequiresCorrectPermission()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
|
|
|
@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
|
||||||
|
|
||||||
use App\Models\ReportTemplate;
|
use App\Models\ReportTemplate;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Tests\Support\InteractsWithSettings;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class DeleteReportTemplateTest extends TestCase
|
class DeleteReportTemplateTest extends TestCase
|
||||||
{
|
{
|
||||||
use InteractsWithSettings;
|
|
||||||
|
|
||||||
public function testDeletingReportTemplateRequiresCorrectPermission()
|
public function testDeletingReportTemplateRequiresCorrectPermission()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
|
|
|
@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
|
||||||
|
|
||||||
use App\Models\ReportTemplate;
|
use App\Models\ReportTemplate;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Tests\Support\InteractsWithSettings;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class ShowReportTemplateTest extends TestCase
|
class ShowReportTemplateTest extends TestCase
|
||||||
{
|
{
|
||||||
use InteractsWithSettings;
|
|
||||||
|
|
||||||
public function testCanLoadCustomReportPage()
|
public function testCanLoadCustomReportPage()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->canViewReports()->create())
|
$this->actingAs(User::factory()->canViewReports()->create())
|
||||||
|
|
|
@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
|
||||||
|
|
||||||
use App\Models\ReportTemplate;
|
use App\Models\ReportTemplate;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Tests\Support\InteractsWithSettings;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class UpdateReportTemplateTest extends TestCase
|
class UpdateReportTemplateTest extends TestCase
|
||||||
{
|
{
|
||||||
use InteractsWithSettings;
|
|
||||||
|
|
||||||
public function testUpdatingReportTemplateRequiresCorrectPermission()
|
public function testUpdatingReportTemplateRequiresCorrectPermission()
|
||||||
{
|
{
|
||||||
$this->actingAs(User::factory()->create())
|
$this->actingAs(User::factory()->create())
|
||||||
|
|
|
@ -7,13 +7,10 @@ use App\Models\Location;
|
||||||
use App\Models\ReportTemplate;
|
use App\Models\ReportTemplate;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
use Illuminate\Database\Eloquent\Collection;
|
||||||
use Tests\Support\InteractsWithSettings;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class ReportTemplateTest extends TestCase
|
class ReportTemplateTest extends TestCase
|
||||||
{
|
{
|
||||||
use InteractsWithSettings;
|
|
||||||
|
|
||||||
public function testSavedTemplatesAreScopedToTheUser()
|
public function testSavedTemplatesAreScopedToTheUser()
|
||||||
{
|
{
|
||||||
// Given there is a saved template for one user
|
// Given there is a saved template for one user
|
||||||
|
|
Loading…
Add table
Reference in a new issue