Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Apr 29, 2024
1 parent d665105 commit 85f8bf4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
databases: ['sqlite', 'mysql', 'pgsql']
server-versions: ['master']
include:
- php-versions: 8.1
databases: mysql
server-versions: stable25
- php-versions: 8.1
databases: mysql
server-versions: stable26
Expand All @@ -34,6 +31,9 @@ jobs:
- php-versions: 8.1
databases: mysql
server-versions: stable28
- php-versions: 8.1
databases: mysql
server-versions: stable29
- php-versions: 8.1
databases: mysql
server-versions: master
Expand Down
18 changes: 4 additions & 14 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0', '8.1']
php-versions: ['7.4', '8.0', '8.1', '8.2']
databases: ['mysql']
server-versions: ['stable25', 'stable26', 'stable27', 'stable28', 'master']
server-versions: ['stable26', 'stable27', 'stable28', 'stable29', 'master']
exclude:
- php-versions: 7.4
server-versions: master
- php-versions: 7.4
server-versions: stable29
- php-versions: 7.4
server-versions: stable28
- php-versions: 7.4
Expand All @@ -34,21 +36,9 @@ jobs:
- php-versions: 8.0
server-versions: master
include:
- php-versions: 8.2
databases: mysql
server-versions: stable26
- php-versions: 8.2
databases: mysql
server-versions: stable27
- php-versions: 8.2
databases: mysql
server-versions: stable28
- php-versions: 8.3
databases: mysql
server-versions: stable28
- php-versions: 8.2
databases: mysql
server-versions: master
- php-versions: 8.3
databases: mysql
server-versions: master
Expand Down
12 changes: 12 additions & 0 deletions tests/unit/Service/ProvisioningServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use OCA\UserOIDC\Service\ProvisioningService;
use OCP\Accounts\IAccountManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Http\Client\IClientService;
use OCP\IAvatarManager;
use OCP\IGroup;
use OCP\IGroupManager;
use OCP\IUser;
Expand Down Expand Up @@ -44,6 +46,12 @@ class ProvisioningServiceTest extends TestCase {
/** @var IAccountManager | MockObject */
private $accountManager;

/** @var IClientService | MockObject */
private $clientService;

/** @var IAvatarManager | MockObject */
private $avatarManager;

public function setUp(): void {
parent::setUp();
$this->idService = $this->createMock(LocalIdService::class);
Expand All @@ -55,6 +63,8 @@ public function setUp(): void {
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->accountManager = $this->createMock(IAccountManager::class);
$this->clientService = $this->createMock(IClientService::class);
$this->avatarManager = $this->createMock(IAvatarManager::class);

$this->provisioningService = new ProvisioningService(
$this->idService,
Expand All @@ -65,6 +75,8 @@ public function setUp(): void {
$this->eventDispatcher,
$this->logger,
$this->accountManager,
$this->clientService,
$this->avatarManager
);
}

Expand Down

0 comments on commit 85f8bf4

Please sign in to comment.