Drain a P-Trap Into the Wall Instead of Onto the Floor
With the sink out and the trap still on the wall stub, swing the trap to one side and rotate the whole assembly the opposite way — the trapped water pours into the waste arm and down the drain instead of into the cabinet.