You are here

public function SmartlingTranslatorTest::testFilterDirectivesEmptyArrayHookMakesItEmpty in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/SmartlingTranslatorTest.php \Drupal\Tests\tmgmt_smartling\Kernel\SmartlingTranslatorTest::testFilterDirectivesEmptyArrayHookMakesItEmpty()

Test filtering empty array: hook makes it empty.

File

tests/src/Kernel/SmartlingTranslatorTest.php, line 85

Class

SmartlingTranslatorTest
Tests for smartling translator.

Namespace

Drupal\Tests\tmgmt_smartling\Kernel

Code

public function testFilterDirectivesEmptyArrayHookMakesItEmpty() {
  $this
    ->assertEquals($this->smartlingTranslator
    ->filterDirectives([]), []);
}