Go to the source code of this file.
Functions | |
| update_test_assert (bool $condition, string $message) | |
| update_test_write (string $file, string $content) | |
| update_test_remove_tree (string $directory) | |
| update_test_inventory (string $version, array $contents) | |
| update_test_package (string $zipFile, string $version, array $contents, string $extraPath='') | |
| update_test_stage (string $work, string $zipFile, array $manifest, array $package) | |
Variables | |
| $root | |
| try | |
| $newContents | |
| $work = $root . DIRECTORY_SEPARATOR . 'files' . DIRECTORY_SEPARATOR . 'update' | |
| $zipFile | |
| $manifest | |
| $service = new dbxUpdateService($root) | |
| $package = $service->inspectPackage($zipFile, $manifest) | |
| $badManifest = $manifest | |
| $badManifest ['zip_url'] = 'https://github.com/other/project/releases/download/v4.0.2/dbxapp-4.0.2.zip' | |
| catch(RuntimeException $exception) | $unsafeZip |
| catch(RuntimeException $exception) | $staging = update_test_stage($work, $zipFile, $manifest, $package) |
| $stopped = $service->cancel() | |
| $outsideGuard = $root . DIRECTORY_SEPARATOR . 'outside-stop-guard.txt' | |
| $manifest ['sha256'] = hash_file('sha256', $zipFile) | |
| $installed = $service->install() | |
| finally | |
| update_test_assert | ( | bool | $condition, |
| string | $message ) |
Definition at line 9 of file dbxUpdateService_test.php.
| update_test_inventory | ( | string | $version, |
| array | $contents ) |
Definition at line 46 of file dbxUpdateService_test.php.
| update_test_package | ( | string | $zipFile, |
| string | $version, | ||
| array | $contents, | ||
| string | $extraPath = '' ) |
| update_test_remove_tree | ( | string | $directory | ) |
Definition at line 27 of file dbxUpdateService_test.php.
References $iterator.
| update_test_stage | ( | string | $work, |
| string | $zipFile, | ||
| array | $manifest, | ||
| array | $package ) |
| update_test_write | ( | string | $file, |
| string | $content ) |
Definition at line 16 of file dbxUpdateService_test.php.
| $badManifest[ 'zip_url'] = 'https://github.com/other/project/releases/download/v4.0.2/dbxapp-4.0.2.zip' |
Definition at line 182 of file dbxUpdateService_test.php.
| $badManifest = $manifest |
Definition at line 181 of file dbxUpdateService_test.php.
| $installed = $service->install() |
Definition at line 257 of file dbxUpdateService_test.php.
Referenced by dbx\dbxAdmin\dbxUpdate\run(), and dbx\dbxAdmin\dbxUpdateService\status().
| $manifest[ 'sha256'] = hash_file('sha256', $zipFile) |
Definition at line 255 of file dbxUpdateService_test.php.
| $manifest |
Definition at line 160 of file dbxUpdateService_test.php.
| $newContents |
Definition at line 146 of file dbxUpdateService_test.php.
| $outsideGuard = $root . DIRECTORY_SEPARATOR . 'outside-stop-guard.txt' |
Definition at line 221 of file dbxUpdateService_test.php.
| $package = $service->inspectPackage($zipFile, $manifest) |
Definition at line 175 of file dbxUpdateService_test.php.
Referenced by update_test_stage().
| $root |
Definition at line 114 of file dbxUpdateService_test.php.
| $service = new dbxUpdateService($root) |
Definition at line 174 of file dbxUpdateService_test.php.
| $staging = update_test_stage($work, $zipFile, $manifest, $package) |
Definition at line 206 of file dbxUpdateService_test.php.
Referenced by update_test_stage().
| $stopped = $service->cancel() |
Definition at line 211 of file dbxUpdateService_test.php.
Referenced by dbx\dbxAdmin\dbxUpdate\run().
| catch (RuntimeException $exception) $unsafeZip |
Definition at line 193 of file dbxUpdateService_test.php.
| $work = $root . DIRECTORY_SEPARATOR . 'files' . DIRECTORY_SEPARATOR . 'update' |
Definition at line 152 of file dbxUpdateService_test.php.
Referenced by dbx_add_modul(), dbx\dbxAdmin\dbxEdit_dd\run(), dbx\dbxAdmin\run(), dbx\dbxContent\dbxContent\run(), dbx\dbxContent_admin\dbxContent_admin\run(), dbx\dbxContent_admin\dbxContent_content\run(), dbx\dbxContent_admin\dbxContent_sections\run(), dbx\dbxContent_admin\run(), dbx\dbxHelp\dbxHelp\run(), dbx\dbxPage_admin\dbxPage_edit\run(), dbx\dbxPage_admin\dbxPage_list\run(), dbx\dbxUser\run(), dbx\myLKW\myLKW_dispo\run(), dbx\myLKW\myLKW_import\run(), sys_msg(), update_db_stage(), and update_test_stage().
| $zipFile |
Definition at line 153 of file dbxUpdateService_test.php.
Referenced by dbx\dbxAdmin\dbxUpdateService\inspectPackage(), update_db_stage(), update_test_package(), and update_test_stage().
| finally |
Definition at line 281 of file dbxUpdateService_test.php.
| try |
Definition at line 117 of file dbxUpdateService_test.php.