public function TranslationProgressCalculatorTest::providerTestValidate in TMGMT Translator Smartling 8.3
Data provider for self::testValidate().
File
- tests/
src/ Kernel/ TranslationProgressCalculatorTest.php, line 231
Class
- TranslationProgressCalculatorTest
- Tests for progress calculator.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
public function providerTestValidate() {
$cases[] = [
"data" => [
"totalStringCount" => 0,
"authorizedStringCount" => 0,
"completedStringCount" => 0,
"excludedStringCount" => 0,
],
"result" => TRUE,
];
$cases[] = [
"data" => [
"authorizedStringCount" => 0,
"completedStringCount" => 0,
"excludedStringCount" => 0,
],
"result" => FALSE,
];
$cases[] = [
"data" => [
"totalStringCount" => 0,
"completedStringCount" => 0,
"excludedStringCount" => 0,
],
"result" => FALSE,
];
$cases[] = [
"data" => [
"totalStringCount" => 0,
"authorizedStringCount" => 0,
"excludedStringCount" => 0,
],
"result" => FALSE,
];
$cases[] = [
"data" => [
"totalStringCount" => 0,
"authorizedStringCount" => 0,
"completedStringCount" => 0,
],
"result" => FALSE,
];
return $cases;
}