Skip to content
Snippets Groups Projects
Commit 298718fd authored by Justin Toupin's avatar Justin Toupin
Browse files

Added test

parent 44ab2cda
No related branches found
No related tags found
1 merge request!30Adds UI elements in Javascript to remove dependency on specific theme...
<?php
namespace Drupal\Tests\layout_paragraphs\FunctionalJavascript;
/**
* Tests Layout Paragraphs Builder with altered paragraphs templates.
*
* This test uses the display suite module which alters the variables passed
* to the paragraph template, effectively testing the UI for cases where a
* paragraph template has been adjusted and no longer renders the entire
* content array.
*
* @see https://www.drupal.org/project/layout_paragraphs/issues/3244055
* @see https://www.drupal.org/project/layout_paragraphs/issues/3244654
*
* @group layout_paragraphs
*/
class BuilderAlteredTemplatesTest extends BuilderTest {
/**
* {@inheritdoc}
*/
protected static $modules = [
'layout_paragraphs',
'paragraphs',
'node',
'field',
'field_ui',
'block',
'paragraphs_test',
'ds',
];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->loginWithPermissions([
'administer site configuration',
'administer node fields',
'administer node display',
'administer paragraphs types',
'administer paragraph fields',
'administer paragraph display',
]);
// Enable Layout Paragraphs behavior for section paragraph type.
$this->drupalGet('admin/structure/paragraphs_type/text/display');
$this->submitForm([
'ds_layout' => 'layout_onecol',
], 'Save');
$this->assertSession()->pageTextContains('Your settings have been saved.');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment