She needs to take both. ESOL is an English exam while Life in the UK test is more about what is UK (history, culture, activities etc...) .
She will no longer need to take ESOL if she has taken English exam before with an equivalent score of b1 level or above, like for example IELTS. If she scored more that 4 in IELTS, no need to take ESOL.