mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Add custom-reporting group
This commit is contained in:
parent
2042733dc0
commit
7777147af5
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue