public function LingotekSettingsTabAccountFormTest::testDisconnect in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
- 3.3.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
- 3.4.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
- 3.5.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
- 3.7.x tests/src/Unit/Form/LingotekSettingsTabAccountFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabAccountFormTest::testDisconnect()
- 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\FormCode
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);
}