You are here

class BehatTest in Event 8

Class BehatTest.

Verifies that behat configuration is as expected.

Hierarchy

  • class \Drupal\Tests\PHPUnit\TestBase extends \Drupal\Tests\PHPUnit\PHPUnit_Framework_TestCase

Expanded class hierarchy of BehatTest

File

tests/phpunit/BehatTest.php, line 10

Namespace

Drupal\Tests\PHPUnit
View source
class BehatTest extends TestBase {

  /**
   * Tests behat.yml exists.
   */
  public function testBehat() {

    // Assert that a behat.yml file exists.
    $this
      ->assertFileExists($this->projectDirectory . '/tests/behat/behat.yml');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BehatTest::testBehat public function Tests behat.yml exists.
TestBase::$drupalRoot protected property
TestBase::$projectDirectory protected property
TestBase::__construct public function Class constructor.