Given the same internal state, a pseudorandom number generator (PRNG) must produce the same output. PRNGs have a period: if you run one long enough, it will start repeating the same sequence. (For good PRNGs, the period is long enough that you don't have to worry about it.) For very simple PRNGs such as a simple linear congruent generator of the form
new number = old number $\times$ constant $+$ another constant
the state is just the previous value. In that case, it's impossible to generate the same number twice in a row unless the constants are poorly chosen and the PRNG gets stuck in a short loop. (This has been known to happen, and you don't want to use such a PRNG!) However, you will sometimes generate numbers that are similar (not the same) in various respects. The tests that vonbrand's answer mentioned are designed to verify that such similarities occur with relative frequencies that are close to what should be found if each number had equal probability.
The most common version of a Mersenne Twister (MT) has a 624$\times$32-bit internal state. If the MT is being used to generate 32-bit numbers, it uses up 32 bits of its state each time it outputs a number, and when all 624 internal state words have been used, the MT generates a new 624-word state from its old state. (The number that is output is not the same as the state word that's used; it's a function of the state word, though.) I suppose an MT could theoretically sometimes output the same number in two successive calls on the MT, although I am not certain that that is possible. I think that would require that two successive words in the generated 624-word state were identical (unless it happened because you seeded the MT with a bad state that included the same number multiple times). I don't know whether this is possible; I suspect that it is. But it should be very, very, very rare in the sense that the relative frequency of successive duplicates across the entire period of MT should be small.
For 32-bit numbers, ideally, the relative frequency of choosing the same number twice in a row should be $1/2^{32} \times 1/2^{32} = 2^{-64}$. That would be very rare. On the other hand, the period of the widely-used version of MT, versions of MT19937, is $2^{19937}-1$. This is the number of successive pairs that could, theoretically, contain duplicates, and $2^{-64} \times 2^{19937}-1 = 2^{19873}$ is a large number. However, any use of MT will only make use of a small fraction of the period. At this point, if I wanted to know how common or rare duplicates are, I would look at the test in TestU01 or another test suite that checks the frequency of duplicates. I wouldn't test the entire period, though, unless I had a lot of computing power and was patient. I don't know whether it's possible to assess the frequency of duplicates analytically from the design of MT19937.
I listed some other relevant resources in this answer and said more about Mersenne Twisters in this answer.