Remove reference to old trait

This commit is contained in:
Marcus Moore 2024-09-17 17:00:06 -07:00
parent 6b70443515
commit 6e16f589bd
No known key found for this signature in database
5 changed files with 0 additions and 15 deletions

View file

@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class CreateReportTemplateTest extends TestCase
{
use InteractsWithSettings;
public function testSavingReportTemplateRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())

View file

@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class DeleteReportTemplateTest extends TestCase
{
use InteractsWithSettings;
public function testDeletingReportTemplateRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())

View file

@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class ShowReportTemplateTest extends TestCase
{
use InteractsWithSettings;
public function testCanLoadCustomReportPage()
{
$this->actingAs(User::factory()->canViewReports()->create())

View file

@ -4,13 +4,10 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class UpdateReportTemplateTest extends TestCase
{
use InteractsWithSettings;
public function testUpdatingReportTemplateRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())

View file

@ -7,13 +7,10 @@ use App\Models\Location;
use App\Models\ReportTemplate;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class ReportTemplateTest extends TestCase
{
use InteractsWithSettings;
public function testSavedTemplatesAreScopedToTheUser()
{
// Given there is a saved template for one user