Compare commits
No commits in common. "b312f9b7648f5857fe42a989bf07bb8a0b4ac39d" and "9147b859d35aad510e7a99e4696c696229b08f53" have entirely different histories.
b312f9b764
...
9147b859d3
@ -31,7 +31,6 @@ class Resume extends Model
|
|||||||
"technologies" => AsCollection::class,
|
"technologies" => AsCollection::class,
|
||||||
"projects" => AsCollection::class,
|
"projects" => AsCollection::class,
|
||||||
];
|
];
|
||||||
protected $perPage = 50;
|
|
||||||
|
|
||||||
public function user(): BelongsTo
|
public function user(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,6 @@ class User extends Authenticatable implements NotifiableInterface
|
|||||||
protected $with = [
|
protected $with = [
|
||||||
"profile",
|
"profile",
|
||||||
];
|
];
|
||||||
protected $perPage = 50;
|
|
||||||
|
|
||||||
public function profile(): HasOne
|
public function profile(): HasOne
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,6 @@ class VacationRequest extends Model
|
|||||||
"to" => "date",
|
"to" => "date",
|
||||||
"event_ids" => AsCollection::class,
|
"event_ids" => AsCollection::class,
|
||||||
];
|
];
|
||||||
protected $perPage = 50;
|
|
||||||
|
|
||||||
public function user(): BelongsTo
|
public function user(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -73,10 +73,10 @@ class UserTest extends FeatureTestCase
|
|||||||
|
|
||||||
public function testUserListIsPaginated(): void
|
public function testUserListIsPaginated(): void
|
||||||
{
|
{
|
||||||
User::factory()->count(50)->create();
|
User::factory()->count(15)->create();
|
||||||
$admin = User::factory()->admin()->create();
|
$admin = User::factory()->admin()->create();
|
||||||
|
|
||||||
$this->assertDatabaseCount("users", 51);
|
$this->assertDatabaseCount("users", 16);
|
||||||
|
|
||||||
$this->actingAs($admin)
|
$this->actingAs($admin)
|
||||||
->get("/users?page=2")
|
->get("/users?page=2")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user