Skip to content

Commit

Permalink
Fix: Strip credentials from tests (already revoked)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rusty committed Mar 18, 2020
1 parent 4008c58 commit 5b5b543
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions tests/units/Alldebrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testSetApikey () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting');
$alldebrid->setApikey('aplN8W0cZro1B54JrLs5');
$alldebrid->setApikey('PUT-A-VALID-APIKEY-HERE');

$response = $alldebrid->user();

Expand All @@ -44,7 +44,7 @@ public function testSetApikey () {
public function testHosts () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->hosts();

$this->array($response)
Expand All @@ -61,7 +61,7 @@ public function testHosts () {
public function testHostsPriority () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->hostsPriority();

$this->array($response)
Expand All @@ -78,7 +78,7 @@ public function testHostsPriority () {
public function testUser () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->user();

$this->array($response)
Expand All @@ -95,7 +95,7 @@ public function testUser () {
public function testLinkType () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->linkType('https://example.com/testing');

$this->array($response)
Expand All @@ -109,7 +109,7 @@ public function testLinkType () {
public function testLinkIsSupported () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->linkIsSupported('https://example.com/testing');

$this->array($response)
Expand All @@ -123,7 +123,7 @@ public function testLinkIsSupported () {
public function testLinkInfos () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->linkInfos('https://example.com/testing');

$this->array($response)
Expand All @@ -140,7 +140,7 @@ public function testLinkInfos () {
public function testLinkUnlock () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->linkUnlock('https://example.com/testing');

$this->array($response)
Expand All @@ -157,7 +157,7 @@ public function testLinkUnlock () {
public function testLinkStream () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
[ $unlock, $error ] = $alldebrid->linkUnlock('https://example.com/streaming');

$response = $alldebrid->linkStream($unlock['id'], $unlock['streams'][0]['id']);
Expand All @@ -176,7 +176,7 @@ public function testLinkStream () {
public function testLinkStreamAuto () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$alldebrid->options['autoUnlockBestStreamQuality'] = true;

$response = $alldebrid->linkUnlock('https://example.com/streaming');
Expand All @@ -195,7 +195,7 @@ public function testLinkStreamAuto () {
public function testLinkDelayed () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
[ $delayed, $error ] = $alldebrid->linkUnlock('https://example.com/delayed');

$response = $alldebrid->linkDelayed($delayed['delayed']);
Expand All @@ -214,7 +214,7 @@ public function testLinkDelayed () {
public function testLinkWaitForDelayed () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
[ $delayed, $error ] = $alldebrid->linkUnlock('https://example.com/delayed');

$response = $alldebrid->linkWaitForDelayed($delayed['delayed']);
Expand All @@ -234,7 +234,7 @@ public function testLinkWaitForDelayed () {
public function testUserLinks () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->userLinks();

$this->array($response)
Expand All @@ -255,7 +255,7 @@ public function testUserLinks () {
public function testUserLinksSave () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->userLinksSave('https://example.com/testingLinksSave');

$this->array($response)
Expand All @@ -272,7 +272,7 @@ public function testUserLinksSave () {
public function testUserLinksDelete () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->userLinksDelete('https://example.com/testingLinksSave');

$this->array($response)
Expand All @@ -289,7 +289,7 @@ public function testUserLinksDelete () {
public function testUserHistory () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->userHistory();

$this->array($response)
Expand All @@ -310,7 +310,7 @@ public function testUserHistory () {
public function testUserHistoryDelete () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->userHistoryDelete();

$this->array($response)
Expand Down Expand Up @@ -363,7 +363,7 @@ public function testPinCheck () {
public function testMagnetUpload () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->magnetUpload('magnet:?xt=urn:btih:286d2e5b4f8369855328336ac1263ae02a7a60d5');

$this->array($response)
Expand All @@ -380,7 +380,7 @@ public function testMagnetUpload () {
public function testMagnetStatus () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');

[ $magnet, $error ] = $alldebrid->magnetUpload('magnet:?xt=urn:btih:286d2e5b4f8369855328336ac1263ae02a7a60d5');

Expand All @@ -400,7 +400,7 @@ public function testMagnetStatus () {
public function testMagnetDelete () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');

[ $magnet, $error ] = $alldebrid->magnetUpload('magnet:?xt=urn:btih:286d2e5b4f8369855328336ac1263ae02a7a60d5');

Expand All @@ -420,7 +420,7 @@ public function testMagnetDelete () {
public function testMagnetRestart () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');

$response = $alldebrid->magnetRestart(42);

Expand All @@ -438,7 +438,7 @@ public function testMagnetRestart () {
public function testMagnetInstant () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');

$response = $alldebrid->magnetInstant('magnet:?xt=urn:btih:286d2e5b4f8369855328336ac1263ae02a7a60d5');

Expand All @@ -457,7 +457,7 @@ public function testMagnetInstant () {
public function testError () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$response = $alldebrid->error('GENERIC');

$this->array($response)
Expand All @@ -471,7 +471,7 @@ public function testError () {
public function testException () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');
$alldebrid->setErrorMode('exception');

$this->exception(
Expand Down Expand Up @@ -521,7 +521,7 @@ public function testPin () {
public function testLink () {
usleep(250000);

$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'aplN8W0cZro1B54JrLs5');
$alldebrid = new \Alldebrid\Alldebrid('atoumTesting', 'PUT-A-VALID-APIKEY-HERE');

$link = $alldebrid->link('https://example.com/streamDelayed');

Expand Down

0 comments on commit 5b5b543

Please sign in to comment.