You are here

public function MediaBrowserContext::upload in Lightning Media 8.2

Same name and namespace in other branches
  1. 8 tests/contexts/MediaBrowserContext.behat.inc \Acquia\LightningExtension\Context\MediaBrowserContext::upload()
  2. 8.3 tests/contexts/MediaBrowserContext.behat.inc \Acquia\LightningExtension\Context\MediaBrowserContext::upload()

Uploads a file in the media browser.

@When I upload :file

Parameters

string $file: The path to the file, relative to the test files directory.

1 call to MediaBrowserContext::upload()
MediaBrowserContext::createFromUpload in tests/contexts/MediaBrowserContext.behat.inc
@When I create media named :title by uploading :file

File

tests/contexts/MediaBrowserContext.behat.inc, line 165

Class

MediaBrowserContext
Contains step definitions for interacting with Lightning's media browser.

Namespace

Acquia\LightningExtension\Context

Code

public function upload($file) {
  $this->isJS ? $this
    ->uploadJS($file) : $this
    ->uploadNoJS($file);
}