22 $tested_type =
'invalid';
23 $mock_repo_helper = \Mockery::mock(
'ilWebDAVRepositoryHelper');
27 $is_davable = $dav_helper->isDAVableObjType($tested_type);
30 $this->assertTrue($is_davable ==
false);
40 $tested_type =
'file';
41 $mock_repo_helper = \Mockery::mock(
'ilWebDAVRepositoryHelper');
45 $is_davable = $dav_helper->isDAVableObjType($tested_type);
48 $this->assertTrue($is_davable ==
true);
58 $tested_title =
'hello';
59 $mock_repo_helper = \Mockery::mock(
'ilWebDAVRepositoryHelper');
63 $is_davable = $dav_helper->isDAVableObjTitle($tested_title);
66 $this->assertTrue($is_davable ==
true);
isDAVableObjType_giveValidType_returnsTrue()
isDAVableObjType_giveInvalidType_returnsFalse()
Class ilWebDAVObjDAVHelper.
isDAVableObjTitle_giveJustLetters_returnsTrue()