32 'description' =>
'Root folder',
38 'description' =>
'Folder 1',
42 $parentFolder =
new Folder(
'2',
'parent',
'Root folder',
null);
43 $childFolder =
new Folder(
'3',
'folder-1',
'Folder 1',
'2');
45 $this->assertEquals($expectedParent, $parentFolder->getArray());
46 $this->assertEquals($expectedChild, $childFolder->getArray());
57 $folder =
new Folder(1,
'name',
'description',
null);
59 $this->assertEquals(10, $folder->getId());
70 $folder =
new Folder(1,
'name',
'description',
null);
71 $folder->setName(
'newName');
72 $this->assertEquals(
'newName', $folder->getName());
83 $folder =
new Folder(1,
'name',
'description',
null);
84 $folder->setDescription(
'newDescription');
85 $this->assertEquals(
'newDescription', $folder->getDescription());
96 $folder =
new Folder(1,
'name',
'description',
null);
97 $folder->setParent(5);
98 $this->assertEquals(5, $folder->getParent());
testSetAndGetDescription()