I've just realized that GL_ALPHA_TEST was deprecated since OpenGL 3.0, so I can't use it with glEnable(). And I've tried quickly to google how to replace it now (and why it was deprecated), but failed to find the answer for this simple question. I also didn't find the information about GL_ALPHA_TEST removing in Khronos documentation.
I suggest that now the only way to discard fragments according to their alpha value is the "discard" keyword in fragment shaders. Am I right?