mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-12 06:28:42 +00:00
autofixes
This commit is contained in:
parent
0422c2cd87
commit
ab1f30b428
|
|
@ -32,18 +32,18 @@ class CalendarMapperTest extends \PHPUnit\Framework\TestCase
|
|||
{
|
||||
$calendar = new Calendar();
|
||||
|
||||
$calendar->name = 'Title';
|
||||
$calendar->name = 'Title';
|
||||
$calendar->description = 'Description';
|
||||
|
||||
$calendarEvent1 = new Event();
|
||||
$calendarEvent1->name = 'Running test';
|
||||
$calendarEvent1 = new Event();
|
||||
$calendarEvent1->name = 'Running test';
|
||||
$calendarEvent1->description = 'Desc1';
|
||||
$calendarEvent1->setCreatedBy(new NullAccount(1));
|
||||
$calendarEvent1->getSchedule()->createdBy = new NullAccount(1);
|
||||
$calendar->addEvent($calendarEvent1);
|
||||
|
||||
$calendarEvent2 = new Event();
|
||||
$calendarEvent2->name = 'Running test2';
|
||||
$calendarEvent2 = new Event();
|
||||
$calendarEvent2->name = 'Running test2';
|
||||
$calendarEvent2->description = 'Desc2';
|
||||
$calendarEvent2->setCreatedBy(new NullAccount(1));
|
||||
$calendarEvent2->getSchedule()->createdBy = new NullAccount(1);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class CalendarTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEquals($date->format('Y-m-d'), $calendar->getDate()->format('Y-m-d'));
|
||||
|
||||
$calendar->name = 'Title';
|
||||
self::assertEquals('Title', $calendar->name );
|
||||
self::assertEquals('Title', $calendar->name);
|
||||
|
||||
$calendar->description = 'Description';
|
||||
self::assertEquals('Description', $calendar->description);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class EventMapperTest extends \PHPUnit\Framework\TestCase
|
|||
{
|
||||
$calendarEvent1 = new Event();
|
||||
|
||||
$calendarEvent1->name = 'Running test';
|
||||
$calendarEvent1->name = 'Running test';
|
||||
$calendarEvent1->description = 'Desc1';
|
||||
$calendarEvent1->setCreatedBy(new NullAccount(1));
|
||||
$calendarEvent1->getSchedule()->createdBy = new NullAccount(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user