tests(unit): add RequireTwoFactorAuthenticationTest

This commit is contained in:
Matthew Penner 2021-07-18 11:28:14 -06:00
parent 790f109e66
commit 64110d84af
9 changed files with 373 additions and 7 deletions

View file

@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use Pterodactyl\Models\WebauthnKey;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebauthnKeyFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*/
protected $model = WebauthnKey::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'name' => $this->faker->name,
];
}
}