/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
tests/System/integration/cli/Cache.cy.js
10 строк
488 B
Nicola Galgano
[5.4] Add system test for cache cleaning command (#47555)
09 май 2026, 18:32
Не верифицирован
09 май 2026, 18:32
e2fcd49
Код
Авторство
О чём код?
describe('Test that console command cache', () => { it('can clean cache', () => { const cachedFile = Cypress.env('cmsPath') + 'administrator/cache/test.txt'; cy.task('writeRelativeFile', { path: 'administrator/cache/test.txt', content: 'test delete file from cache', mode: 0o666 }); cy.exec(`php ${Cypress.env('cmsPath')}/cli/joomla.php cache:clean`) .its('stdout') .should('contain', 'Cache cleaned'); cy.readFile(cachedFile).should('not.exist'); }); });