/**
  * Tests the getBaseFieldDefinitions() method with an invalid definition.
  *
  * @covers ::getBaseFieldDefinitions
  * @covers ::buildBaseFieldDefinitions
  *
  * @expectedException \LogicException
  */
 public function testGetBaseFieldDefinitionsInvalidDefinition()
 {
     $langcode_definition = $this->setUpEntityWithFieldDefinition(FALSE, 'langcode', array('langcode' => 'langcode'));
     $langcode_definition->expects($this->once())->method('isTranslatable')->will($this->returnValue(FALSE));
     $this->entityType->expects($this->any())->method('isTranslatable')->will($this->returnValue(TRUE));
     $this->entityManager->getBaseFieldDefinitions('test_entity_type');
 }
 /**
  * Tests the getBaseFieldDefinitions() method with an invalid definition.
  *
  * @covers ::getBaseFieldDefinitions
  * @covers ::buildBaseFieldDefinitions
  *
  * @expectedException \LogicException
  */
 public function testGetBaseFieldDefinitionsInvalidDefinition()
 {
     $this->setUpEntityWithFieldDefinition(FALSE, 'langcode', array('langcode' => 'langcode'));
     $this->entityType->isTranslatable()->willReturn(TRUE);
     $this->entityType->getLabel()->willReturn('the_label');
     $this->entityManager->getBaseFieldDefinitions('test_entity_type');
 }