Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

OEL-453: [oe_whitelabel] authentication

Merged Francesco SARDARA requested to merge OEL-453 into 1.x

Created by: abel-santos-corral

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit 667ebd0a
  • 28 ];
    29
    30 /**
    31 * {@inheritdoc}
    32 */
    33 protected function setUp(): void {
    34 parent::setUp();
    35 /** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */
    36 \Drupal::service('theme_installer')->install(['oe_whitelabel']);
    37
    38 \Drupal::configFactory()
    39 ->getEditable('system.theme')
    40 ->set('default', 'oe_whitelabel')
    41 ->save();
    42 $this->container->set('theme.registry', NULL);
    43
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit 667ebd0a
  • 57 'plugin' => 'oe_authentication_login_block',
    58 'settings' => [
    59 'id' => 'oe_authentication_login_block',
    60 'label' => 'EU Login Link Block',
    61 'provider' => 'oe_authentication',
    62 'label_display' => '0',
    63 ],
    64 ]);
    65 $entity->save();
    66 $builder = \Drupal::entityTypeManager()->getViewBuilder('block');
    67 $build = $builder->view($entity, 'block');
    68 $render = $this->container->get('renderer')->renderRoot($build);
    69 $crawler = new Crawler($render->__toString());
    70
    71 $actual = $crawler->filter('#block-euloginlinkblock');
    72 $this->assertCount(1, $actual);
  • Created by: drishu

    Review: Approved

  • Created by: escuriola

    Review: Approved

  • Created by: Maxfire

    Review: Approved

    approved :thumbsup:

  • Merged by: drishu at 2021-09-13 06:47:31 UTC

  • merged manually

  • Please register or sign in to reply
    Loading