configurable calendar drag and drop behavior (#3537)

This commit is contained in:
Kevin Papst
2022-09-14 23:29:26 +02:00
committed by GitHub
parent d705287510
commit 283ab80fc7
10 changed files with 50 additions and 13 deletions

View File

@@ -37,7 +37,6 @@ class TimesheetEntryTest extends TestCase
$expectedData = [
'activity' => null,
'project' => null,
'tags' => 'bulb,action test',
];
$sut = new TimesheetEntry($timesheet, '#cccccc');
@@ -48,6 +47,17 @@ class TimesheetEntryTest extends TestCase
$this->assertSame($activity, $sut->getActivity());
$this->assertEquals('dd_timesheet', $sut->getBlockName());
$this->assertEquals($expectedData, $sut->getData());
$expectedData = [
'activity' => null,
'project' => null,
'tags' => 'bulb,action test',
'description' => 'hello foo bar',
];
$sut = new TimesheetEntry($timesheet, '#cccccc', true);
$this->assertEquals($expectedData, $sut->getData());
}
public function testEmpty()
@@ -57,7 +67,6 @@ class TimesheetEntryTest extends TestCase
$expectedData = [
'activity' => null,
'project' => null,
'tags' => null,
];
$sut = new TimesheetEntry($timesheet, '#ddd');