Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhynds committed Feb 13, 2024
1 parent 724480c commit 9ed77d0
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/Certification/Lti13CertificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class Lti13CertificationTest extends TestCase
private $issuer;
private $key;
private array $payload;
private $cache;
private $cookie;
private $serviceConnector;

public function setUp(): void
{
Expand Down
2 changes: 2 additions & 0 deletions tests/DeepLinkResources/IconTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class IconTest extends TestCase
{
private $imageUrl;
private $icon;
public function setUp(): void
{
$this->imageUrl = 'https://example.com/image.png';
Expand Down
1 change: 1 addition & 0 deletions tests/Lti1p1KeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class Lti1p1KeyTest extends TestCase
{
private $key;
public function setUp(): void
{
$this->key = new Lti1p1Key();
Expand Down
6 changes: 5 additions & 1 deletion tests/LtiAssignmentsGradesServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

class LtiAssignmentsGradesServiceTest extends TestCase
{
private $connector;
private $registration;
public function setUp(): void
{
$this->connector = Mockery::mock(ILtiServiceConnector::class);
Expand Down Expand Up @@ -452,7 +454,7 @@ public function testItGetsLineItems()
$this->assertEquals($response, $result);
}

public function testItGetsALineItems()
public function testItGetsALineItem()
{
$serviceData = [
'scope' => [LtiConstants::AGS_SCOPE_LINEITEM],
Expand All @@ -475,5 +477,7 @@ public function testItGetsALineItems()
->once()->andReturn($response);

$result = $service->getLineItems();

$this->assertEquals($expected, $result);
}
}
2 changes: 2 additions & 0 deletions tests/LtiCourseGroupsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

class LtiCourseGroupsServiceTest extends TestCase
{
private $connector;
private $registration;
public function setUp(): void
{
$this->connector = Mockery::mock(ILtiServiceConnector::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/LtiDeploymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class LtiDeploymentTest extends TestCase
{
private $id = 'a deployment';

private $deployment;
public function setUp(): void
{
$this->deployment = new LtiDeployment($this->id);
Expand Down
2 changes: 2 additions & 0 deletions tests/LtiGradeSubmissionReviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class LtiGradeSubmissionReviewTest extends TestCase
{
private $gradeReview;

public function setUp(): void
{
$this->gradeReview = new LtiGradeSubmissionReview();
Expand Down
1 change: 1 addition & 0 deletions tests/LtiGradeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class LtiGradeTest extends TestCase
{
private $grade;
public function setUp(): void
{
$this->grade = new LtiGrade();
Expand Down
2 changes: 2 additions & 0 deletions tests/LtiMessageLaunchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class LtiMessageLaunchTest extends TestCase
private array $issuer;
private array $key;
private array $payload;
private $migrationDatabase;
private $deployment;

public function setUp(): void
{
Expand Down
2 changes: 2 additions & 0 deletions tests/LtiNamesRolesProvisioningServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

class LtiNamesRolesProvisioningServiceTest extends TestCase
{
private $connector;
private $registration;
public function setUp(): void
{
$this->connector = Mockery::mock(ILtiServiceConnector::class);
Expand Down
4 changes: 4 additions & 0 deletions tests/LtiOidcLoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

class LtiOidcLoginTest extends TestCase
{
private $cache;
private $cookie;
private $database;
private $oidcLogin;
public function setUp(): void
{
$this->cache = Mockery::mock(ICache::class);
Expand Down
2 changes: 2 additions & 0 deletions tests/LtiRegistrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class LtiRegistrationTest extends TestCase
{
private $registration;

public function setUp(): void
{
$this->registration = new LtiRegistration();
Expand Down
12 changes: 12 additions & 0 deletions tests/LtiServiceConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ class LtiServiceConnectorTest extends TestCase
* @var LtiServiceConnector
*/
private $connector;
private $responseStatus;
private $responseBody;
private $responseHeaders;
private $request;
private $requestPayload;
private $requestHeaders;
private $body;
private $url;
private $method;
private $token;
private $scopes;
private $streamInterface;

public function setUp(): void
{
Expand Down
1 change: 1 addition & 0 deletions tests/ServiceRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ServiceRequestTest extends TestCase
private $method = ServiceRequest::METHOD_GET;
private $url = 'https://example.com';
private $type = ServiceRequest::TYPE_AUTH;
private $request;

public function setUp(): void
{
Expand Down

0 comments on commit 9ed77d0

Please sign in to comment.