Commit 41c52a26 authored by l26yan's avatar l26yan Committed by Igor Biki
Browse files

ISTWCMS-4832 Add catalog item content type to test layout builder lock.

parent 34e1b04d
......@@ -614,6 +614,24 @@ class UwWcmsBasicTest extends BrowserTestBase {
}
}
}
// Test Layout Builder configuration paths for catalog item content type.
// catalog item content type only has one configure section and the above
// content types have three configure sections (1, 2, 3).
$nid = $content_nids['uw_ct_catalog_item'];
$this->drupalGet('node/' . $nid . '/layout');
$paths = [
'layout_builder/choose/section/overrides/node.' . $nid . '/0' => TRUE,
'layout_builder/choose/section/overrides/node.' . $nid . '/1' => FALSE,
'layout_builder/configure/section/overrides/node.' . $nid . '/0' => FALSE,
];
foreach ($paths as $path => $access) {
if ($access || $user === 'administrator') {
$this->assertSession()->linkByHrefExists($path);
}
else {
$this->assertSession()->linkByHrefNotExists($path);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment