A verb phrase refers to the part or portion of a sentence that contains the verb and the object which can be either a direct or an indirect object.
Bearing this in mind, in the particular sentence provided <em>John ate the cake, </em>the verb phrase is <em>"ate the cake"</em> since ate corresponds to the verb and the cake corresponds to the direct object.