From 5b5b543cb3021283e63e2dd0d48253e419acec61 Mon Sep 17 00:00:00 2001 From: Rusty Date: Wed, 18 Mar 2020 16:36:07 +0100 Subject: [PATCH] Fix: Strip credentials from tests (already revoked) --- tests/units/Alldebrid.php | 50 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/units/Alldebrid.php b/tests/units/Alldebrid.php index b2dd100..fa6dac2 100644 --- a/tests/units/Alldebrid.php +++ b/tests/units/Alldebrid.php @@ -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(); @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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']); @@ -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'); @@ -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']); @@ -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']); @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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'); @@ -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'); @@ -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); @@ -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'); @@ -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) @@ -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( @@ -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');