public function EntityFieldManagerTest::testGetBaseFieldDefinitionsInvalidDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\EntityFieldManagerTest::testGetBaseFieldDefinitionsInvalidDefinition()
Tests the getBaseFieldDefinitions() method with an invalid definition.
@covers ::getBaseFieldDefinitions @covers ::buildBaseFieldDefinitions
@expectedException \LogicException
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php, line 458 - Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
Class
- EntityFieldManagerTest
- @coversDefaultClass \Drupal\Core\Entity\EntityFieldManager @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetBaseFieldDefinitionsInvalidDefinition() {
$this
->setUpEntityWithFieldDefinition(FALSE, 'langcode', [
'langcode' => 'langcode',
]);
$this->entityType
->isTranslatable()
->willReturn(TRUE);
$this->entityType
->getLabel()
->willReturn('the_label');
$this->entityFieldManager
->getBaseFieldDefinitions('test_entity_type');
}