30]); $account = new Account; $account->setRelation('plan', $plan); expect((new SocialAccountLimit)->resolve($account))->toBe(30); }); test('falls back to 5 when no plan', function () { $account = new Account; $account->setRelation('plan', null); expect((new SocialAccountLimit)->resolve($account))->toBe(5); });