You are here

public function LingotekSettingsTabUtilitiesFormTest::testRefreshResources in Lingotek Translation 3.7.x

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

@covers ::refreshResources

File

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

Class

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

Namespace

Drupal\Tests\lingotek\Unit\Form

Code

public function testRefreshResources() {
  $this->lingotek
    ->expects($this
    ->once())
    ->method('getResources')
    ->with(TRUE);
  $this->configFactory
    ->expects($this
    ->never())
    ->method('getEditable');
  $this->form
    ->refreshResources();
}