Skip to content

Commit

Permalink
Fix: Facets form Block plugin id.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan-cds committed Oct 2, 2024
1 parent 5b53cfc commit c9d3bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Constants {

const FACET_EMPTY_CLASS = 'facet-empty';

const FACETS_FORM_DIR_FACET_BLOCK_PLUGIN_ID = 'facets_form:search_api:search_api:views_embed__localgov_directory_channel__node_embed';
const FACETS_FORM_DIR_FACET_BLOCK_PLUGIN_ID = 'facets_form:search_api:views_embed__localgov_directory_channel__node_embed';

const CHANNEL_VIEW = 'localgov_directory_channel';

Expand Down
13 changes: 1 addition & 12 deletions tests/src/Functional/FacetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,7 @@ class FacetsTest extends BrowserTestBase {
protected function setUp() :void {
parent::setUp();

// Set up admin user.
$admin_user = $this->drupalCreateUser([
'bypass node access',
'administer nodes',
'administer blocks',
]);

// Place the facet block.
$this->drupalLogin($admin_user);
$this->drupalPlaceBlock('facet_block:localgov_directories_facets', []);
$this->drupalLogout($admin_user);

// Set up facet types.
$facet_types = [
Expand Down Expand Up @@ -442,8 +432,7 @@ public function testFacetsFormWidget(): void {
$dir_facet->setOnlyVisibleWhenFacetSourceIsVisible(FALSE);
$dir_facet->setWidget('facets_form_checkbox');
$dir_facet->save();
$facets_form_block = $this->drupalPlaceBlock(Directory::FACETS_FORM_DIR_FACET_BLOCK_PLUGIN_ID);
$this->drupalGet('admin/structure/block/manage/' . $facets_form_block->id());
$this->drupalPlaceBlock(Directory::FACETS_FORM_DIR_FACET_BLOCK_PLUGIN_ID);

$this->createAtestDirectory();

Expand Down

0 comments on commit c9d3bb8

Please sign in to comment.