Commit 1b390dfc authored by João Ventura's avatar João Ventura Committed by João Ventura
Browse files

Issue #3255394 by slasher13, jcnventura: Support externalauth 2

parent 220a1f1f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
  },
  "require": {
    "php": ">=7.1.0",
    "ext-json": "*",
    "drupal/externalauth": "^1.3"
    "ext-json": "*"
  }
}
+8 −0
Original line number Diff line number Diff line
@@ -318,6 +318,10 @@ class OpenIDConnectTest extends UnitTestCase {
        ->willReturn($hasPermission);

      if (!$hasPermission) {
        $this->currentUser->expects($this->once())
          ->method('id')
          ->willReturn(3);

        $this->authmap->expects($this->once())
          ->method('getAll')
          ->willReturn($connectedAccounts);
@@ -330,6 +334,10 @@ class OpenIDConnectTest extends UnitTestCase {
        ->willReturn($hasPermission);

      if (!$hasPermission) {
        $account->expects($this->once())
          ->method('id')
          ->willReturn(3);

        $this->authmap->expects($this->once())
          ->method('getAll')
          ->willReturn($connectedAccounts);