Does anybody here know if the ESOL Course (English for Speakers of Other Languages ) can be a substitute for taking the ILR (Indifinite Leave to Remain) test?

I'm confused whether I gonna take the course as what my guy suggested just for me to integrate or have a self review to take the test someday for my ILR visa.

I appreciate any reply