added more testst

This commit is contained in:
Dennis Eichhorn 2020-10-02 21:18:50 +02:00
parent 7399e03903
commit 84700bf0d3

View File

@ -1594,12 +1594,18 @@ return [
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticPermission' => ['description' => 'The permission of a directory can be returned', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testInvalidStaticPermission' => ['description' => 'The permission of a none-existing directory is negative', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticCopy' => ['description' => 'A directory can be copied recursively', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticCopyOverwrite' => ['description' => 'A directory can be forced to be copied to a different location even if the destination already exists', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticInvalidCopyOverwrite' => ['description' => 'By default a directory is not overwritten on copy', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticMove' => ['description' => 'A directory can be moved/renamed to a different path', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticInvalidMoveOverwrite' => ['description' => 'By default a directory is not overwritten on move', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticMoveOverwrite' => ['description' => 'A directory can be forced to be moved/renamed to a different path even if the destination already exists', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticCountRecursive' => ['description' => 'The amount of files in a directory can be returned recursively', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticCount' => ['description' => 'The amount of files in a directory can be returned none-recursively', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testInvalidStaticCount' => ['description' => 'The amount of files of a none-existing directory is negative', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticListFiles' => ['description' => 'All files and sub-directories of a directory can be listed', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticListFilesByExtension' => ['description' => 'All files of a directory can be listed by file extension', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testStaticOwner' => ['description' => 'The owner of a directory can be returned', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testDirectoryNameSanitizing' => ['description' => 'Invalid directory names and paths can be sanitized', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testInvalidListPath' => ['description' => 'A none-existing directory returns a empty list of files and sub-directories', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testInvalidListFilesByExtension' => ['description' => 'A none-existing directory returns a empty list of files for the extension', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\DirectoryTest:testInvalidCopyPath' => ['description' => 'A invalid directory cannot be copied to a new destination', 'type' => 'framework'],
@ -1683,6 +1689,7 @@ return [
'phpOMS\tests\System\File\Local\LocalStorageTest:testInvalidChangedPathDirectory' => ['description' => 'Reading the last change date of a none-existing directory throws a PathException', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testInvalidOwnerPathDirectory' => ['description' => 'Reading the owner of a none-existing directory throws a PathException', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testInvalidStaticCreateFile' => ['description' => 'A file cannot be created if it already exists', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testSanitization' => ['description' => 'Invalid names and paths can be sanitized', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testStaticPutFile' => ['description' => 'A file with content can be created', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testInvalidStaticCreateReplaceFile' => ['description' => 'A file cannot be replaced if it doesn\'t exists', 'type' => 'framework'],
'phpOMS\tests\System\File\Local\LocalStorageTest:testInvalidStaticCreateAppendFile' => ['description' => 'A file cannot be appended if it doesn\'t exists', 'type' => 'framework'],
@ -1817,6 +1824,7 @@ return [
'phpOMS\tests\System\File\FileUtilsTest:testExtension' => ['description' => 'File extensions can be categorized', 'type' => 'framework'],
'phpOMS\tests\System\File\FileUtilsTest:testAbsolute' => ['description' => 'A relative path can be turned into an absolute path', 'type' => 'framework'],
'phpOMS\tests\System\File\FileUtilsTest:testPermissionToOctal' => ['description' => 'Permissions can be turned into octal values', 'type' => 'framework'],
'phpOMS\tests\System\File\FileUtilsTest:testChangeFileEncoding' => ['description' => 'The encoding of a file can be changed', 'type' => 'framework'],
'phpOMS\tests\System\SystemUtilsTest' => ['description' => 'System information', 'type' => 'framework'],
'phpOMS\tests\System\SystemUtilsTest:testRAM' => ['description' => 'Test if it is possible to get information about the available RAM and usage', 'type' => 'framework'],
@ -2017,12 +2025,15 @@ return [
'phpOMS\tests\Utils\IO\Zip\TarTest' => ['description' => 'Tar archive', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\TarTest:testTar' => ['description' => 'Data can be tar packed and unpacked', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\TarTest:testInvalidTarUnpack' => ['description' => 'Extracting invalid tar files fail', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\TarTest:testInvalidTar' => ['description' => 'A tar archive cannot be overwritten by default', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\TarTest:testInvalidUnpackSource' => ['description' => 'A none-existing source cannot be unpacked', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\TarTest:testInvalidUnpackDestination' => ['description' => 'A destination cannot be overwritten', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest' => ['description' => 'Zip archive', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testZip' => ['description' => 'Data can be zip packed and unpacked', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testInvalidZipDestination' => ['description' => 'The output of the zip archive needs to be properly defined', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testInvalidZipUnpack' => ['description' => 'Extracting invalid zip files fail', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testInvalidZip' => ['description' => 'A zip archive cannot be overwritten by default', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testInvalidUnpackSource' => ['description' => 'A none-existing source cannot be unpacked', 'type' => 'framework'],
'phpOMS\tests\Utils\IO\Zip\ZipTest:testInvalidUnpackDestination' => ['description' => 'A destination cannot be overwritten', 'type' => 'framework'],
@ -2104,6 +2115,7 @@ return [
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest' => ['description' => 'Job/task abstraction', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testDefault' => ['description' => 'The task abstraction has the expected default values after initialization', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testCommandInputOutput' => ['description' => 'The command can be set and returned', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testIntervalInputOutput' => ['description' => 'The interval can be set and returned', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testStatusInputOutput' => ['description' => 'The status can be set and returned', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testCommentInputOutput' => ['description' => 'The comment can be set and returned', 'type' => 'framework'],
'phpOMS\tests\Utils\TaskSchedule\TaskAbstractTest:testLastRuntimeInputOutput' => ['description' => 'The last runtime can be set and returned', 'type' => 'framework'],