@@ -905,4 +905,30 @@ public static function connectionParamsWhenConnectionIsUserOrAuxiliaryProvider()
905905 '12345 ' ,
906906 ];
907907 }
908+
909+ public function testVendorConfigFile (): void
910+ {
911+ $ vendorConfig = include ROOT_PATH . 'libraries/vendor_config.php ' ;
912+ $ expected = [
913+ 'autoloadFile ' => ROOT_PATH . 'vendor ' . DIRECTORY_SEPARATOR . 'autoload.php ' ,
914+ 'tempDir ' => ROOT_PATH . 'tmp ' . DIRECTORY_SEPARATOR ,
915+ 'changeLogFile ' => ROOT_PATH . 'ChangeLog ' ,
916+ 'licenseFile ' => ROOT_PATH . 'LICENSE ' ,
917+ 'sqlDir ' => ROOT_PATH . 'sql ' . DIRECTORY_SEPARATOR ,
918+ 'configFile ' => ROOT_PATH . 'config.inc.php ' ,
919+ 'customHeaderFile ' => ROOT_PATH . 'config.header.inc.php ' ,
920+ 'customFooterFile ' => ROOT_PATH . 'config.footer.inc.php ' ,
921+ 'versionCheckDefault ' => true ,
922+ 'localePath ' => ROOT_PATH . 'locale ' . DIRECTORY_SEPARATOR ,
923+ 'cacheDir ' => ROOT_PATH . 'cache ' . DIRECTORY_SEPARATOR ,
924+ 'versionSuffix ' => '' ,
925+ ];
926+ self ::assertSame ($ expected , $ vendorConfig );
927+ self ::assertFileExists ($ vendorConfig ['autoloadFile ' ]);
928+ self ::assertFileExists ($ vendorConfig ['changeLogFile ' ]);
929+ self ::assertFileExists ($ vendorConfig ['licenseFile ' ]);
930+ self ::assertDirectoryExists ($ vendorConfig ['sqlDir ' ]);
931+ self ::assertDirectoryExists ($ vendorConfig ['localePath ' ]);
932+ self ::assertDirectoryExists ($ vendorConfig ['cacheDir ' ]);
933+ }
908934}
0 commit comments