Commit cbc895ec authored by Pieter Frenssen's avatar Pieter Frenssen
Browse files

Test that Behat SubContexts have the correct class name.

parent 0c76f8e9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ class ClassFileNameUnitTest extends CoderSniffUnitTest
        switch ($testFile) {
        case 'ClassFileNameUnitTest.php':
            return [3 => 1];
        case 'drupal8.behat.inc':
            return [];
        case 'class_fle_name_test.module':
            return [];
        }
@@ -56,6 +58,7 @@ class ClassFileNameUnitTest extends CoderSniffUnitTest
    {
        return [
            __DIR__.'/drupal8/ClassFileNameUnitTest.php',
            __DIR__.'/drupal8/drupal8.behat.inc',
            __DIR__.'/drupal7/class_fle_name_test.module',
        ];

+10 −0
Original line number Diff line number Diff line
<?php

use Drupal\DrupalExtension\Context\DrupalSubContextBase;

/**
 * Step definitions for testing the functionality of the Drupal8 module.
 */
class Drupal8SubContext extends DrupalSubContextBase {

}