/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); \Drupal::service('router.builder')->rebuild(); $this->installSchema('system', array('sequences')); $this->installSchema('comment', array('comment_entity_statistics')); $this->installEntitySchema('taxonomy_term'); $this->installConfig(['node', 'comment']); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->installEntitySchema('file'); $entity_manager = \Drupal::entityManager(); $link_manager = new LinkManager(new TypeLinkManager(new MemoryBackend('default'), \Drupal::moduleHandler(), \Drupal::service('config.factory'), \Drupal::service('request_stack')), new RelationLinkManager(new MemoryBackend('default'), $entity_manager, \Drupal::moduleHandler(), \Drupal::service('config.factory'), \Drupal::service('request_stack'))); // Set up the mock serializer. $normalizers = array(new FieldItemNormalizer(), new FileEntityNormalizer($entity_manager, \Drupal::httpClient(), $link_manager, \Drupal::moduleHandler())); $encoders = array(new JsonEncoder()); $this->serializer = new Serializer($normalizers, $encoders); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); \Drupal::service('router.builder')->rebuild(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->installSchema('system', array('sequences')); $this->installConfig(['node', 'content_translation']); }