You are here

protected function IntegrationTest::goToDeleteFacetPage in Facets 8

Go to the Delete Facet Page using the facet name.

Parameters

string $facet_name: The name of the facet.

File

tests/src/Functional/IntegrationTest.php, line 1158

Class

IntegrationTest
Tests the overall functionality of the Facets admin UI.

Namespace

Drupal\Tests\facets\Functional

Code

protected function goToDeleteFacetPage($facet_name) {
  $facet_id = $this
    ->convertNameToMachineName($facet_name);
  $facet_delete_page = '/admin/config/search/facets/' . $facet_id . '/delete';

  // Go to the facet delete page and make the warning is shown.
  $this
    ->drupalGet($facet_delete_page);
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}