Commit 436fc3ce authored by webchick's avatar webchick
Browse files

Issue #1849810 by das-peter: Fixed typos in EntityTranslationTest.php:...

Issue #1849810 by das-peter: Fixed typos in EntityTranslationTest.php: unstranslatable -> untranslatable.
parent 1417d334
......@@ -131,17 +131,17 @@ function testEntityLanguageMethods() {
$this->pass('A translation for an invalid language is NULL.');
}
// Try to get an unstranslatable value from a translation in strict mode.
// Try to get an untranslatable value from a translation in strict mode.
try {
$field_name = 'field_test_text';
$value = $entity->getTranslation($this->langcodes[1])->get($field_name);
$this->fail('Getting an unstranslatable value from a translation in strict mode throws an exception.');
$this->fail('Getting an untranslatable value from a translation in strict mode throws an exception.');
}
catch (InvalidArgumentException $e) {
$this->pass('Getting an unstranslatable value from a translation in strict mode throws an exception.');
$this->pass('Getting an untranslatable value from a translation in strict mode throws an exception.');
}
// Try to get an unstranslatable value from a translation in non-strict
// Try to get an untranslatable value from a translation in non-strict
// mode.
$entity->set($field_name, array(0 => array('value' => 'default value')));
$value = $entity->getTranslation($this->langcodes[1], FALSE)->get($field_name)->value;
......@@ -156,13 +156,13 @@ function testEntityLanguageMethods() {
$this->pass("Setting a translation for an invalid language throws an exception.");
}
// Try to set an unstranslatable value into a translation in strict mode.
// Try to set an untranslatable value into a translation in strict mode.
try {
$entity->getTranslation($this->langcodes[1])->set($field_name, NULL);
$this->fail("Setting an unstranslatable value into a translation in strict mode throws an exception.");
$this->fail("Setting an untranslatable value into a translation in strict mode throws an exception.");
}
catch (InvalidArgumentException $e) {
$this->pass("Setting an unstranslatable value into a translation in strict mode throws an exception.");
$this->pass("Setting an untranslatable value into a translation in strict mode throws an exception.");
}
// Set the value in default language.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment