public function SmartlingTranslatorTest::testFilterDirectivesEmptyArrayHookMakesItEmpty in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 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 91
Class
- SmartlingTranslatorTest
- Tests for smartling translator.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
public function testFilterDirectivesEmptyArrayHookMakesItEmpty() {
$this
->assertEquals($this->smartlingTranslator
->filterDirectives([]), []);
}