You are here

public function LingotekSettingsTabAccountFormTest::testDisconnect in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
  2. 3.3.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
  3. 3.5.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
  4. 3.6.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
  5. 3.7.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
  6. 3.8.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()

@covers ::disconnect

File

tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php, line 126

Class

LingotekSettingsTabAccountFormTest
@coversDefaultClass \Drupal\lingotek\Form\LingotekSettingsTabAccountForm @group lingotek @preserveGlobalState disabled

Namespace

Drupal\Tests\lingotek\Unit\Form

Code

public function testDisconnect() {
  $build = [];
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $form_state
    ->expects($this
    ->once())
    ->method('setRedirect')
    ->with('lingotek.account_disconnect');
  $build = $this->form
    ->disconnect($build, $form_state);
}