private function SmartlingTest::deleteTestFile in TMGMT Translator Smartling 8
Removes test file from Smartling dashboard.
Parameters
$fileName:
9 calls to SmartlingTest::deleteTestFile()
- SmartlingTest::testContextSendingByCron in src/
Tests/ SmartlingTest.php - Test context sending by cron.
- SmartlingTest::testManualContextSending in src/
Tests/ SmartlingTest.php - Test manual context sending.
- SmartlingTest::testPushBackController in src/
Tests/ SmartlingTest.php - Test push back controller.
- SmartlingTest::testSilentSwitchingOff in src/
Tests/ SmartlingTest.php - Test context uploading with turned off "Silent switching mode" feature.
- SmartlingTest::testSilentSwitchingOn in src/
Tests/ SmartlingTest.php - Test context uploading with turned on "Silent switching mode" feature.
File
- src/
Tests/ SmartlingTest.php, line 110 - Contains \Drupal\tmgmt_smartling\Tests\SmartlingTest.
Class
- SmartlingTest
- Basic tests for the Smartling translator.
Namespace
Drupal\tmgmt_smartling\TestsCode
private function deleteTestFile($fileName) {
try {
$smartlingApi = new SmartlingApi($this->smartlingPluginProviderSettings['settings[key]'], $this->smartlingPluginProviderSettings['settings[project_id]'], Drupal::getContainer()
->get('http_client'), $this->smartlingPluginProviderSettings['settings[api_url]']);
$smartlingApi
->deleteFile($fileName);
} catch (SmartlingApiException $e) {
// File not found.
}
}