Move Branches and Team into Settings as Pro features.
Deploy Ladill Frontdesk / deploy (push) Successful in 48s
Deploy Ladill Frontdesk / deploy (push) Successful in 48s
Gate multi-branch and team management behind paid plans, nest their routes under Settings, and remove them from the sidebar Administration section.
This commit is contained in:
@@ -459,4 +459,27 @@ class FrontdeskProTest extends TestCase
|
||||
|
||||
$this->assertDatabaseHas('frontdesk_branches', ['name' => 'Second Branch']);
|
||||
}
|
||||
|
||||
public function test_pro_can_open_branches_and_team_settings(): void
|
||||
{
|
||||
$this->organization->update([
|
||||
'settings' => array_merge($this->organization->settings ?? [], [
|
||||
'plan' => 'pro',
|
||||
'billed_branches' => 1,
|
||||
'plan_expires_at' => now()->addMonth()->toIso8601String(),
|
||||
]),
|
||||
]);
|
||||
|
||||
$this->actingAs($this->owner)
|
||||
->get(route('frontdesk.branches.index'))
|
||||
->assertOk()
|
||||
->assertSee('Branches')
|
||||
->assertDontSee('Upgrade to Pro');
|
||||
|
||||
$this->actingAs($this->owner)
|
||||
->get(route('frontdesk.members.index'))
|
||||
->assertOk()
|
||||
->assertSee('Team')
|
||||
->assertDontSee('Upgrade to Pro');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user