You are here

protected function BlockVisibilityGroupsTestBase::updateBlockInGroupUI in Block Visibility Groups 8

Update a block which is already placed in a block visibility group.

Parameters

string $block_id: The block ID.

string $group_id: The group id.

array $settings: The array of settings.

1 call to BlockVisibilityGroupsTestBase::updateBlockInGroupUI()
VisibilityTest::testSingleConditions in src/Tests/VisibilityTest.php

File

src/Tests/BlockVisibilityGroupsTestBase.php, line 100

Class

BlockVisibilityGroupsTestBase

Namespace

Drupal\block_visibility_groups\Tests

Code

protected function updateBlockInGroupUI($block_id, $group_id, array $settings = []) {
  $this
    ->drupalPostForm('admin/structure/block/manage/' . $block_id, $settings, 'Save block', [
    'query' => [
      'block_visibility_group' => $group_id,
    ],
  ]);
}