public function CdnSettingsTest::testAutobalancedWithoutConditions in CDN 8.3
@covers ::getLookupTable
File
- tests/
src/ Unit/ CdnSettingsTest.php, line 341
Class
- CdnSettingsTest
- @coversDefaultClass \Drupal\cdn\CdnSettings @group cdn
Namespace
Drupal\Tests\cdn\UnitCode
public function testAutobalancedWithoutConditions() {
$this
->expectException(ConfigValueException::class);
$this
->expectExceptionMessage("It does not make sense to apply auto-balancing to all files, regardless of extension.");
$this
->createCdnSettings([
'status' => TRUE,
'mapping' => [
'type' => 'auto-balanced',
'fallback_domain' => NULL,
'domains' => [
'foo.example.com',
'bar.example.com',
],
],
])
->getLookupTable();
}