public function LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled 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::testSwitchDebugWithDebugDisabled()
- 4.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.1.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.2.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.3.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.4.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.5.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.6.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.7.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
- 3.8.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugDisabled()
@covers ::switchDebugUtilities
File
- tests/
src/ Unit/ Form/ LingotekSettingsTabUtilitiesFormTest.php, line 118
Class
- LingotekSettingsTabUtilitiesFormTest
- @coversDefaultClass \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm @group lingotek @preserveGlobalState disabled
Namespace
Drupal\Tests\lingotek\Unit\FormCode
public function testSwitchDebugWithDebugDisabled() {
$this->state
->expects($this
->any())
->method('get')
->with('lingotek.enable_debug_utilities')
->will($this
->returnValue(FALSE));
$this->state
->expects($this
->once())
->method('set')
->with('lingotek.enable_debug_utilities', TRUE);
$this->routeBuilder
->expects($this
->once())
->method('rebuild');
$this->form
->switchDebugUtilities();
}