You are here

public function BynderApiTest::uploadFileAsync in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::uploadFileAsync()
  2. 8 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::uploadFileAsync()
  3. 4.0.x tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::uploadFileAsync()

Returns value set in state.

Parameters

string $media_uuid: The media UUID.

Return value

array Returns array of expected values.

File

tests/modules/bynder_test_module/src/BynderApiTest.php, line 154

Class

BynderApiTest
Bynder API test service.

Namespace

Drupal\bynder_test_module

Code

public function uploadFileAsync($media_uuid) {
  return [
    'success' => $this->state
      ->get('bynder.bynder_test_upload_success'),
    'mediaid' => $this->state
      ->get('bynder.bynder_test_upload_mediaid'),
  ];
}