diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 0859585..87e317b 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -62,9 +62,10 @@ public function testUploadDownloadMedia() { //constants $mediaId = "text-media-id-" . uniqid(); $content = "Hello world"; + $contentType = 'text/plain'; //media upload - $this->bandwidthClient->getMessaging()->getClient()->uploadMedia(getenv("BW_ACCOUNT_ID"), $mediaId, $content); + $this->bandwidthClient->getMessaging()->getClient()->uploadMedia(getenv("BW_ACCOUNT_ID"), $mediaId, $content, $contentType); //media download $downloadedContent = $this->bandwidthClient->getMessaging()->getClient()->getMedia(getenv("BW_ACCOUNT_ID"), $mediaId)->getResult();