Use setMwGlobals in ApiEditPageTest

Change-Id: If2b23d82816c87e454bfc2348e316bdb92d2809f
Merge "Use setMwGlobals in ApiEditPageTest"