/**
  * Tests the UI of the plugin.
  */
 protected function testMicrosoftUi()
 {
     $this->loginAsAdmin();
     $edit = ['settings[api_key]' => 'wrong key'];
     $this->drupalPostForm('admin/config/regional/tmgmt_translator/manage/' . $this->translator->id(), $edit, t('Save'));
     $this->assertText(t('The "Google API key" is not correct.'));
     $edit = ['settings[api_key]' => 'correct key'];
     $this->drupalPostForm('admin/config/regional/tmgmt_translator/manage/' . $this->translator->id(), $edit, t('Save'));
     $this->assertText(t('@label configuration has been updated.', ['@label' => $this->translator->label()]));
 }