public function LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 4.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.1.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.2.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.3.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.4.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.5.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.6.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.7.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
- 3.8.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testFormDebugUtilityWithDebugDisabled()
@covers ::buildForm
File
- tests/
src/ Unit/ Form/ LingotekSettingsTabUtilitiesFormTest.php, line 73
Class
- LingotekSettingsTabUtilitiesFormTest
- @coversDefaultClass \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm @group lingotek @preserveGlobalState disabled
Namespace
Drupal\Tests\lingotek\Unit\FormCode
public function testFormDebugUtilityWithDebugDisabled() {
$this->state
->expects($this
->any())
->method('get')
->with('lingotek.enable_debug_utilities')
->will($this
->returnValue(FALSE));
$build = [];
$form_state = $this
->getMock('Drupal\\Core\\Form\\FormStateInterface');
$build = $this->form
->buildForm($build, $form_state);
$this
->assertSame($build['utilities']['lingotek_table']['enable_debug_utilities']['actions']['submit']['#value']
->getUntranslatedString(), 'Enable debug operations');
}