Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
delabiejochen committed May 5, 2021
1 parent 60ac0c3 commit d00f531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestingBotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
class TestingBotTest extends PHPUnit_Framework_TestCase {
private $api;

public function setup() {
protected function setUp(): void {
$key = getenv("TB_KEY");
$secret = getenv("TB_SECRET");

Expand Down Expand Up @@ -72,12 +72,12 @@ public function testCalculateAuthentication() {

public function testUploadLocalFileToStorage() {
$response = $this->api->uploadLocalFileToStorage(realpath(dirname(__FILE__) . '/resources/test.apk'));
$this->assertContains('tb://', $response['app_url']);
$this->assertStringContainsStringIgnoringCase('tb://', $response['app_url']);
}

public function testUploadRemoteFileToStorage() {
$response = $this->api->uploadRemoteFileToStorage('https://testingbot.com/appium/sample.apk');
$this->assertContains('tb://', $response['app_url']);
$this->assertStringContainsStringIgnoringCase('tb://', $response['app_url']);
}

public function testGetStoredFiles() {
Expand Down

0 comments on commit d00f531

Please sign in to comment.