-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
FeatureContext.php
92 lines (84 loc) · 2.27 KB
/
FeatureContext.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* @file
* Feature context for testing Behat-steps.
*/
declare(strict_types=1);
use DrevOps\BehatSteps\BigPipeTrait;
use DrevOps\BehatSteps\ContentTrait;
use DrevOps\BehatSteps\CookieTrait;
use DrevOps\BehatSteps\DateTrait;
use DrevOps\BehatSteps\DraggableViewsTrait;
use DrevOps\BehatSteps\EckTrait;
use DrevOps\BehatSteps\ElementTrait;
use DrevOps\BehatSteps\EmailTrait;
use DrevOps\BehatSteps\FieldTrait;
use DrevOps\BehatSteps\FileDownloadTrait;
use DrevOps\BehatSteps\FileTrait;
use DrevOps\BehatSteps\JsTrait;
use DrevOps\BehatSteps\KeyboardTrait;
use DrevOps\BehatSteps\LinkTrait;
use DrevOps\BehatSteps\MediaTrait;
use DrevOps\BehatSteps\MenuTrait;
use DrevOps\BehatSteps\MetaTagTrait;
use DrevOps\BehatSteps\OverrideTrait;
use DrevOps\BehatSteps\ParagraphsTrait;
use DrevOps\BehatSteps\PathTrait;
use DrevOps\BehatSteps\ResponseTrait;
use DrevOps\BehatSteps\RoleTrait;
use DrevOps\BehatSteps\SearchApiTrait;
use DrevOps\BehatSteps\SelectTrait;
use DrevOps\BehatSteps\TaxonomyTrait;
use DrevOps\BehatSteps\TestmodeTrait;
use DrevOps\BehatSteps\UserTrait;
use DrevOps\BehatSteps\VisibilityTrait;
use DrevOps\BehatSteps\WaitTrait;
use DrevOps\BehatSteps\WatchdogTrait;
use DrevOps\BehatSteps\WysiwygTrait;
use Drupal\DrupalExtension\Context\DrupalContext;
/**
* Defines application features from the specific context.
*/
class FeatureContext extends DrupalContext {
use BigPipeTrait;
use CookieTrait;
use ContentTrait;
use EckTrait;
use DateTrait;
use DraggableViewsTrait;
use EmailTrait;
use ElementTrait;
use FieldTrait;
use FileDownloadTrait;
use FileTrait;
use JsTrait;
use KeyboardTrait;
use LinkTrait;
use MediaTrait;
use MetaTagTrait;
use MenuTrait;
use OverrideTrait;
use ParagraphsTrait;
use PathTrait;
use ResponseTrait;
use RoleTrait;
use SelectTrait;
use SearchApiTrait;
use TaxonomyTrait;
use TestmodeTrait;
use UserTrait;
use VisibilityTrait;
use WatchdogTrait;
use WaitTrait;
use WysiwygTrait;
use FeatureContextTrait;
/**
* Override dateNow() method to return a preset value for testing.
*
* This cannot be moved to FeatureContextTrait because traits cannot override
* methods from other traits.
*/
protected static function dateNow(): int {
return strtotime('2024-07-15 12:00:00');
}
}