You are here

private function BlockTest::placeSearchBlock in Search API Pages 8

Places a search block for a given page.

Parameters

string $pageId: The page id.

int $weight: The weight.

1 call to BlockTest::placeSearchBlock()
BlockTest::setUp in tests/src/Functional/BlockTest.php

File

tests/src/Functional/BlockTest.php, line 69

Class

BlockTest
Provides web tests for Search API Pages.

Namespace

Drupal\Tests\search_api_page\Functional

Code

private function placeSearchBlock($pageId, $weight) {
  $this
    ->drupalPlaceBlock('search_api_page_form_block', [
    'search_api_page' => $pageId,
    'weight' => $weight,
  ]);
}