mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
Added time estimates for projects and tasks, fixes ST-283
This commit is contained in:
committed by
Gregor Vostrak
parent
78ea8a673b
commit
a820d8540f
@@ -72,11 +72,21 @@ abstract class TestCase extends BaseTestCase
|
||||
|
||||
protected function assertBillableRateServiceIsUnused(): void
|
||||
{
|
||||
$this->mock(BillableRateService::class, function (MockInterface $mock) {
|
||||
$this->mock(BillableRateService::class, function (MockInterface $mock): void {
|
||||
$mock->shouldNotReceive('updateTimeEntriesBillableRateForProjectMember');
|
||||
$mock->shouldNotReceive('updateTimeEntriesBillableRateForProject');
|
||||
$mock->shouldNotReceive('updateTimeEntriesBillableRateForMember');
|
||||
$mock->shouldNotReceive('updateTimeEntriesBillableRateForOrganization');
|
||||
});
|
||||
}
|
||||
|
||||
protected function actAsOrganizationWithSubscription(): void
|
||||
{
|
||||
$this->mock(BillingContract::class, function (MockInterface $mock): void {
|
||||
$mock->shouldReceive('hasSubscription')->andReturn(true);
|
||||
$mock->shouldReceive('hasTrial')->andReturn(false);
|
||||
$mock->shouldReceive('getTrialUntil')->andReturn(null);
|
||||
$mock->shouldReceive('isBlocked')->andReturn(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user