public function CdnSettingsTest::testComplexMappingWithoutConditions in CDN 8.3
@covers ::getLookupTable
File
- tests/
src/ Unit/ CdnSettingsTest.php, line 360
Class
- CdnSettingsTest
- @coversDefaultClass \Drupal\cdn\CdnSettings @group cdn
Namespace
Drupal\Tests\cdn\UnitCode
public function testComplexMappingWithoutConditions() {
$this
->expectException(\AssertionError::class);
$this
->expectExceptionMessage("The nested mapping 0 includes no conditions, which is not allowed for complex mappings.");
$this
->createCdnSettings([
'status' => TRUE,
'mapping' => [
'type' => 'complex',
'fallback_domain' => 'cdn.example.com',
'domains' => [
0 => [
'type' => 'simple',
'domain' => 'foo.example.com',
],
],
],
])
->getLookupTable();
}