You are here

public function FeatureContext::deleteTestField in Bear 8

Same name and namespace in other branches
  1. 8.2 tests/features/bootstrap/FeatureContext.php \FeatureContext::deleteTestField()
  2. 7.2 tests/features/bootstrap/FeatureContext.php \FeatureContext::deleteTestField()
  3. 7 tests/features/bootstrap/FeatureContext.php \FeatureContext::deleteTestField()

@AfterScenario @deleteTestField

File

tests/features/bootstrap/FeatureContext.php, line 67

Class

FeatureContext
Defines application features from the specific context.

Code

public function deleteTestField() {
  $driver = $this
    ->getSession()
    ->getDriver();
  $driver
    ->visit("/admin/structure/types/manage/page/fields/node.page.field_test/delete");
  $this
    ->getSession()
    ->getPage()
    ->pressButton("Delete");
}