function ContentEntityBaseUnitTest::testIsTranslatableForMonolingual
Tests is translatable for monolingual.
@legacy-covers ::isTranslatable
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ ContentEntityBaseUnitTest.php, line 344
Class
Namespace
Drupal\Tests\Core\EntityCode
public function testIsTranslatableForMonolingual() : void {
$this->languageManager
->expects($this->any())
->method('isMultilingual')
->willReturn(FALSE);
$this->assertFalse($this->entity
->isTranslatable());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.