2]); $village = startVillage(); $world = World::find($village->world_id); $users = User::count(); $user = owner($village); $this->artisan('game:reset-world', ['slug' => 'w1', '--force' => true])->assertSuccessful(); expect(Village::where('world_id', $world->id)->count())->toBe(0) ->and(Player::where('world_id', $world->id)->count())->toBe(0) ->and(GameEvent::where('world_id', $world->id)->count())->toBe(0) ->and(User::count())->toBe($users); // Joining again starts a fresh village at the centre. $again = startVillage($user); expect(hypot($again->x, $again->y))->toBeLessThanOrEqual(5); });