mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Removed unused code
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dbd33e1a34
commit
a0bbafeb30
|
@ -7,7 +7,6 @@ use App\Models\Department;
|
||||||
use App\Models\Group;
|
use App\Models\Group;
|
||||||
use App\Models\Location;
|
use App\Models\Location;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Support\Facades\Hash;
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
|
||||||
class StoreUserTest extends TestCase {
|
class StoreUserTest extends TestCase {
|
||||||
|
@ -65,12 +64,8 @@ class StoreUserTest extends TestCase {
|
||||||
public function testDoesNotAcceptBogusGroupData()
|
public function testDoesNotAcceptBogusGroupData()
|
||||||
{
|
{
|
||||||
$admin = User::factory()->superuser()->create();
|
$admin = User::factory()->superuser()->create();
|
||||||
$manager = User::factory()->create();
|
|
||||||
$company = Company::factory()->create();
|
|
||||||
$department = Department::factory()->create();
|
|
||||||
$location = Location::factory()->create();
|
|
||||||
|
|
||||||
$response = $this->actingAsForApi($admin)
|
$this->actingAsForApi($admin)
|
||||||
->postJson(route('api.users.store'), [
|
->postJson(route('api.users.store'), [
|
||||||
'first_name' => 'Mabel',
|
'first_name' => 'Mabel',
|
||||||
'username' => 'mabel',
|
'username' => 'mabel',
|
||||||
|
|
Loading…
Reference in a new issue