snipe-it/tests/Feature/Consumables/Ui/EditConsumableTest.php

18 lines
385 B
PHP
Raw Normal View History

<?php
namespace Tests\Feature\Consumables\Ui;
use App\Models\Consumable;
use App\Models\User;
use Tests\TestCase;
class EditConsumableTest extends TestCase
{
public function testPageRenders()
{
$this->actingAs(User::factory()->superuser()->create())
->get(route('consumables.show', Consumable::factory()->create()->id))
->assertOk();
}
}