[verb (plain)] + ことにはならない [i-adj] + ことにはならない [na-adj] + な/である + ことにはならない [noun] + である + ことにはならない [sentence] + ということにはならない
ことにはならない says that one thing does not count as, or does not prove, another: "that doesn't mean", "that doesn't amount to". It follows a verb or an い-adjective in the plain form; a noun takes である, and a な-adjective な or である. With という in front, any plain sentence can go before it.
A noun needs である or という before こと: ×学生だことにはならない → がくせい学生であることにはならない or がくせい学生だということにはならない.
The first clause usually sets up the thing that falls short, with だけでは ("on its own"), からといって ("just because") or ても ("even if").