The test attempts to check write permissions on the file it is in, which would be src/XF/Install/_upgrader/core.php
, but your entire installation (all files, recursively) must be writable by the user PHP is running under to use the one-click upgrade system.