Hi. Yes, you will need to pass the Life in the UK test to apply for citizenship.
Although the Republic of Ireland is a part of the Common Travel Area, it is not a part of the United Kingdom, so your time in the Irish Republic will count as absences from the United Kingdom.
Best wishes,
Will