public function LogsHttpLoggerTest::isEnabledProvider in Logs HTTP 8
Provides test data to test isEnabled.
In order to isEnabled method to return TRUE, the 'enabled' configuration must be TRUE and the url must not be empty.
Return value
array Array with:
- "enabled" boolean value.
- "url" string value.
- The expected result.
File
- tests/
src/ Unit/ LogsHttpLoggerTest.php, line 89
Class
- LogsHttpLoggerTest
- Tests the Logs Http logger service.
Namespace
Drupal\Tests\logs_http\UnitCode
public function isEnabledProvider() {
return [
[
FALSE,
'',
FALSE,
],
[
FALSE,
'https://example.com',
FALSE,
],
[
TRUE,
'',
FALSE,
],
[
TRUE,
'https://example.com',
TRUE,
],
];
}