Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drupal / drupal-extension / doc / _static / snippets / subcontext.inc
diff --git a/vendor/drupal/drupal-extension/doc/_static/snippets/subcontext.inc b/vendor/drupal/drupal-extension/doc/_static/snippets/subcontext.inc
deleted file mode 100644 (file)
index cf6247f..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/**
- * Contains \FooFoo.
- */
-
-use Behat\Behat\Hook\Scope\BeforeScenarioScope;
-use Behat\Behat\Tester\Exception\PendingException;
-use Drupal\DrupalExtension\Context\DrupalSubContextBase;
-use Drupal\DrupalExtension\Context\DrupalSubContextInterface;
-
-/**
- * Example subcontext.
- */
-class FooFoo extends DrupalSubContextBase implements DrupalSubContextInterface {
-
-  /**
-   * @var \Drupal\DrupalExtension\Context\DrupalContext
-   */
-  protected $drupalContext;
-
-  /**
-   * @var \Drupal\DrupalExtension\Context\MinkContext
-   */
-  protected $minkContext;
-
-  /**
-   * @BeforeScenario
-   */
-  public function gatherContexts(BeforeScenarioScope $scope) {
-    $environment = $scope->getEnvironment();
-
-    $this->drupalContext = $environment->getContext('Drupal\DrupalExtension\Context\DrupalContext');
-    $this->minkContext = $environment->getContext('Drupal\DrupalExtension\Context\MinkContext');
-  }
-
-  /**
-   * @Given I create a(an) :arg1 content type
-   */
-  public function CreateAContentType($arg1) {
-    $this->minkContext->assertAtPath("admin/structure/types/add");
-    $node = [
-      'title' => 'Test content!',
-    ];
-    $this->drupalContext->nodeCreate($node);
-  }
-
-  /**
-   * @Then /^I should have a subcontext definition$/
-   */
-  public function assertSubContextDefinition() {
-    throw new PendingException();
-  }
-
-}