But for testing purposes I'd like to:
-- Set pin 2 to output
-- Set pin 3 to input pullup
-- Connect pin 2 to pin 3
-- Simulate a sensor by setting pin 2 high/low
-- Read the state of pin 3
Can I connect the pins directly?
Or am I about to fry my Pro Mini because I'm missing something basic?
[EDIT]
I'm mainly wondering/worried if there will be a over-current issue on the pins when connecting them this way
[/EDIT]
Yes, of course it can. It doesn't care where the signal comes from, even from another one of its own pins. It matters how you wire things, and how you code things, but as far as the concept of "HI" or "LOW", Arduino is pretty dumb (in a good way).
I edited the question, I'm mainly concerned that there might be a current issue.
Would a limiting resistor be advisable or can the internal resistors handle this just fine?
That is why I usually use a resistor as a convenient jumper between pins - we all make mistakes. Just have to be aware that the resistor and internal pullup resistor act as a voltage divider.