Skip to content

Commit 90a94de

Browse files
committed
fix phpunit notices
1 parent 98d6767 commit 90a94de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/SSHKeyAddTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use UnityWebPortal\lib\UnityGithub;
44
use PHPUnit\Framework\Attributes\DataProvider;
55
use PHPUnit\Framework\MockObject\MockBuilder;
6+
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
67

78
class SSHKeyAddTest extends UnityWebPortalTestCase
89
{
@@ -94,6 +95,7 @@ public function getKeyCount()
9495
return count($USER->getSSHKeys());
9596
}
9697

98+
#[AllowMockObjectsWithoutExpectations]
9799
#[DataProvider("provider")]
98100
public function testAddSshKeys(string $methodName, int $expectedKeysAdded, array $keys)
99101
{

0 commit comments

Comments
 (0)