test preserved schedule start
This commit is contained in:
parent
db6b41ee42
commit
bcbc2e6ba3
3 changed files with 20 additions and 15 deletions
|
|
@ -19,7 +19,7 @@ use Tests\Fakes\FakeScheduleRepository;
|
|||
|
||||
class RescheduleScheduleTest extends TestCase
|
||||
{
|
||||
public function test_it_redistributes_only_unfinished_assignments(): void
|
||||
public function test_it_redistributes_only_unfinished_assignments_without_changing_start_date(): void
|
||||
{
|
||||
$user = $this->user(1, 'reader@example.com');
|
||||
$repository = new FakeScheduleRepository;
|
||||
|
|
@ -42,7 +42,7 @@ class RescheduleScheduleTest extends TestCase
|
|||
),
|
||||
);
|
||||
|
||||
$this->assertSame('2026-08-20', $rescheduled->getStartDate()
|
||||
$this->assertSame('2026-08-10', $rescheduled->getStartDate()
|
||||
->format('Y-m-d'));
|
||||
$this->assertSame('2026-08-21', $rescheduled->getTargetDate()
|
||||
->format('Y-m-d'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue