-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oel 462: facet list template overriden. #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the Sitebranding as an example or any of the other
*/ | ||
protected function setUp(): void { | ||
parent::setUp(); | ||
/** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests were excluded from this task as agreed.
* @covers ::getFacets | ||
* @covers ::removeFacet | ||
*/ | ||
public function testFacets() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function testFacets() { | |
public function testFacetsRendering(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests were excluded from this task as agreed.
|
||
$facets = ['foo' => 'bar']; | ||
$entity->setFacets($facets); | ||
$this->assertEquals($facets, $entity->getFacets()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to render the build of the facets summary block, and assert the markup with Crawler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests were excluded from this task as agreed.
{%- if items -%} | ||
{%- for item in items -%} | ||
{% if item.value['#type'] == 'link' %} | ||
{% include '@oe-bcl/bcl-badge/badge.html.twig' with { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ pattern('badge', {
'label': 'label',
'assistive_text': 'assistive_text',
'url': '#',
'icons_path': bcl_icon_path,
'dismissible': true
}) }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 done.
…ade according to the feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the summary title is not in the scope of this ticket, the current implementation is correct.
No description provided.