Skip to content

Commit fb27d40

Browse files
Update BxmlTest.php
1 parent 0a5a63e commit fb27d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/BxmlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,17 +354,17 @@ public function testStopRecording() {
354354
public function testStartStream() {
355355
$startStream = new BandwidthLib\Voice\Bxml\StartStream();
356356
$startStream->name("test");
357+
$startStream->tracks("inbound");
357358
$startStream->destination("https://url.com");
358359
$startStream->streamEventMethod("POST");
359360
$startStream->username("user");
360361
$startStream->password("pass");
361362
$startStream->streamEventUrl("https://url.com");
362-
363363

364364
$response = new BandwidthLib\Voice\Bxml\Response();
365365
$response->addVerb($startStream);
366366

367-
$expectedXml = '<?xml version="1.0" encoding="UTF-8"?><Response><StartStream destination="https://url.com" name="test" username="user" *** streamEventUrl="https://url.com" streamEventMethod="POST"/></Response>';
367+
$expectedXml = '<?xml version="1.0" encoding="UTF-8"?><Response><StartStream destination="https://url.com" name="test" tracks="inbound" username="user" *** streamEventUrl="https://url.com" streamEventMethod="POST"/></Response>';
368368
$responseXml = $response->toBxml();
369369
$this->assertEquals($expectedXml, $responseXml);
370370
}

0 commit comments

Comments
 (0)