Skip to content

Commit

Permalink
Update tests and docsUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
karniv00l committed Jul 24, 2020
1 parent 9312c92 commit 5b999ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function userRegistrationEnabled(): bool

public function telemetryEnabled(): bool
{
return $this->get('telemetry') === self::TELEMETRY_ENABLED;
return $this->get(self::TELEMETRY) === self::TELEMETRY_ENABLED;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Telemetry.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(string $instanceIdFile, TelemetryQuery $query, Endpo

public function docsUrl(): string
{
return 'https://repman.io/docs/telemetry';
return 'https://repman.io/docs/standalone#telemetry';
}

public function generateInstanceId(): void
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/Command/SendTelemetryCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function testSendTelemetryWithoutInstanceIdFile(): void
);

self::assertEquals(0, $commandTester->execute([]));
self::assertFalse($this->container()->get(TelemetryEndpoint::class)->sent());
}

public function testSendTelemetryWithTelemetryDisabled(): void
Expand All @@ -34,6 +35,7 @@ public function testSendTelemetryWithTelemetryDisabled(): void
);

self::assertEquals(0, $commandTester->execute([]));
self::assertFalse($this->container()->get(TelemetryEndpoint::class)->sent());
}

public function testSendTelemetry(): void
Expand Down

0 comments on commit 5b999ee

Please sign in to comment.