Skip to content

Commit

Permalink
whoops, flipped order
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Jan 22, 2025
1 parent 965310b commit a68d5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Models/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function testUsernameChangeCost(int $changes, int $cost)
->has(UsernameChangeHistory::factory()->count($changes))
->create();

$this->assertSame($user->usernameChangeCost(), $cost);
$this->assertSame($cost, $user->usernameChangeCost());
}

/**
Expand All @@ -198,7 +198,7 @@ public function testUsernameChangeCostLastChange(int $years, int $cost)

$this->travelBack();

$this->assertSame($user->usernameChangeCost(), $cost);
$this->assertSame($cost, $user->usernameChangeCost());
}

/**
Expand All @@ -210,7 +210,7 @@ public function testUsernameChangeCostType(string $type, int $cost)
->has(UsernameChangeHistory::factory()->state(['type' => $type]))
->create();

$this->assertSame($user->usernameChangeCost(), $cost);
$this->assertSame($cost, $user->usernameChangeCost());
}

/**
Expand All @@ -230,7 +230,7 @@ public function testUsernameChangeCostTypeLastChange(string $type, int $cost)

UsernameChangeHistory::factory()->state(['type' => $type, 'user_id' => $user])->create();

$this->assertSame($user->usernameChangeCost(), $cost);
$this->assertSame($cost, $user->usernameChangeCost());
}

/**
Expand Down

0 comments on commit a68d5e0

Please sign in to comment.