File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ use DrevOps\BehatSteps\Drupal\DraggableviewsTrait;
4848use DrevOps\BehatSteps\Drupal\EckTrait;
4949use DrevOps\BehatSteps\Drupal\EmailTrait;
5050use DrevOps\BehatSteps\Drupal\FieldTrait as DrupalFieldTrait;
51+ use DrevOps\BehatSteps\Drupal\FileTrait;
5152use DrevOps\BehatSteps\Drupal\MediaTrait;
5253use DrevOps\BehatSteps\Drupal\MenuTrait;
5354use DrevOps\BehatSteps\Drupal\MetatagTrait;
@@ -77,6 +78,7 @@ class FeatureContext extends DrupalContext {
7778 use BlockTrait;
7879 use ContentTrait;
7980 use EmailTrait;
81+ use FileTrait;
8082 use MediaTrait;
8183 use TaxonomyTrait;
8284 use UserTrait;
@@ -591,7 +593,16 @@ Scenario: Test email notifications
591593
592594---
593595
594- Use `MediaTrait` from drevops/behat-steps and built-in Drupal steps for file entities:
596+ ## Drupal\FileTrait
597+
598+ [Source](vendor/drevops/behat-steps/src/Drupal/FileTrait.php)
599+
600+ > Manage Drupal file entities and operations.
601+ > - Handle file uploads, downloads, and management operations.
602+ > - Work with managed and unmanaged files in Drupal.
603+ > - Automatically clean up created file entities after scenario completion.
604+
605+ Use `FileTrait` and `MediaTrait` from drevops/behat-steps along with built-in Drupal steps for file entities:
595606
596607### Available steps:
597608
You can’t perform that action at this time.
0 commit comments