Add custom-reporting group

This commit is contained in:
Marcus Moore 2024-10-28 14:42:44 -07:00
parent 2042733dc0
commit 7777147af5
No known key found for this signature in database
7 changed files with 14 additions and 0 deletions

View file

@ -4,9 +4,11 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate; use App\Models\ReportTemplate;
use App\Models\User; use App\Models\User;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class CreateReportTemplateTest extends TestCase implements TestsPermissionsRequirement class CreateReportTemplateTest extends TestCase implements TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()

View file

@ -4,9 +4,11 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate; use App\Models\ReportTemplate;
use App\Models\User; use App\Models\User;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class DeleteReportTemplateTest extends TestCase implements TestsPermissionsRequirement class DeleteReportTemplateTest extends TestCase implements TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()

View file

@ -4,9 +4,11 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate; use App\Models\ReportTemplate;
use App\Models\User; use App\Models\User;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class EditReportTemplateTest extends TestCase implements TestsPermissionsRequirement class EditReportTemplateTest extends TestCase implements TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()

View file

@ -4,9 +4,11 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate; use App\Models\ReportTemplate;
use App\Models\User; use App\Models\User;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class ShowReportTemplateTest extends TestCase implements TestsPermissionsRequirement class ShowReportTemplateTest extends TestCase implements TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()

View file

@ -4,9 +4,11 @@ namespace Tests\Feature\ReportTemplates;
use App\Models\ReportTemplate; use App\Models\ReportTemplate;
use App\Models\User; use App\Models\User;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class UpdateReportTemplateTest extends TestCase implements TestsPermissionsRequirement class UpdateReportTemplateTest extends TestCase implements TestsPermissionsRequirement
{ {
public function testRequiresPermission() public function testRequiresPermission()

View file

@ -9,9 +9,11 @@ use App\Models\User;
use Illuminate\Testing\TestResponse; use Illuminate\Testing\TestResponse;
use League\Csv\Reader; use League\Csv\Reader;
use PHPUnit\Framework\Assert; use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Attributes\Group;
use Tests\Concerns\TestsPermissionsRequirement; use Tests\Concerns\TestsPermissionsRequirement;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class CustomReportTest extends TestCase implements TestsPermissionsRequirement class CustomReportTest extends TestCase implements TestsPermissionsRequirement
{ {
protected function setUp(): void protected function setUp(): void

View file

@ -7,8 +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 PHPUnit\Framework\Attributes\Group;
use Tests\TestCase; use Tests\TestCase;
#[Group('custom-reporting')]
class ReportTemplateTest extends TestCase class ReportTemplateTest extends TestCase
{ {
public function testSavedTemplatesAreScopedToTheUser() public function testSavedTemplatesAreScopedToTheUser()