You are here

public function LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  2. 4.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  3. 3.0.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  4. 3.1.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  5. 3.2.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  6. 3.3.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  7. 3.4.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  8. 3.5.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  9. 3.6.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  10. 3.7.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()
  11. 3.8.x tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Unit\Form\LingotekSettingsTabUtilitiesFormTest::testSwitchDebugWithDebugEnabled()

@covers ::switchDebugUtilities

File

tests/src/Unit/Form/LingotekSettingsTabUtilitiesFormTest.php, line 101

Class

LingotekSettingsTabUtilitiesFormTest
@coversDefaultClass \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm @group lingotek @preserveGlobalState disabled

Namespace

Drupal\Tests\lingotek\Unit\Form

Code

public function testSwitchDebugWithDebugEnabled() {
  $this->state
    ->expects($this
    ->any())
    ->method('get')
    ->with('lingotek.enable_debug_utilities')
    ->will($this
    ->returnValue(TRUE));
  $this->state
    ->expects($this
    ->once())
    ->method('set')
    ->with('lingotek.enable_debug_utilities', FALSE);
  $this->routeBuilder
    ->expects($this
    ->once())
    ->method('rebuild');
  $this->form
    ->switchDebugUtilities();
}