AzuraCast / php-api-client

An API client library for the AzuraCast API
Apache License 2.0
27 stars 16 forks source link

Test "testStreamersSuccessful" fails sometimes #13

Closed Vaalyn closed 5 years ago

Vaalyn commented 5 years ago

Sometimes the testStreamersSuccessful test fails due to invalid response from AzuraCast.

Needs to be investigated to determine the root cause.

1) AzuraCast\Api\AzuraCastApiClientTest::testStreamersSuccessful
TypeError: Argument 1 passed to AzuraCast\Api\Dto\StreamerDto::fromArray() must be of the type array, null given, called in /app/src/Station/StreamersClient.php on line 88
/app/src/Dto/StreamerDto.php:233
/app/src/Station/StreamersClient.php:88
/app/tests/AzuraCastApiClient/AzuraCastApiClientTest.php:488
Vaalyn commented 5 years ago

The error stems from the POST call to setup a streamer account. The password generated by faker contains an invalid character for that entity.

Vaalyn commented 5 years ago

Closed by PR #12