The overall goal was to provoke Texas into an invasion of Mexico, in which case Santa Anna would crush the Texans. The Mexican harassment was a test of nerve for Houston, as many Texans clamored for an invasion, exactly the response Santa Anna was hoping for.