Skip to content

Commit

Permalink
Rename testRinkebyHost to testHost2
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Aug 27, 2023
1 parent 60045cf commit 6c9a0d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class TestCase extends BaseTestCase
protected $web3;

/**
* testRinkebyHost
* testHost2
*
* @var string
*/
protected $testRinkebyHost = 'https://rinkeby.infura.io/vuethexplore';
protected $testHost2 = 'https://eth-mainnet.g.alchemy.com/v2/notavalidkey';

/**
* testHost
Expand Down
3 changes: 2 additions & 1 deletion test/unit/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public function testSetRequestManager()

$this->assertEquals($provider->requestManager->host, 'http://localhost:8545');

$requestManager = new RequestManager($this->testRinkebyHost);
$requestManager = new RequestManager($this->testHost2);
$provider->requestManager = $requestManager;

// there is no setter for request manager
$this->assertEquals($provider->requestManager->host, 'http://localhost:8545');
}
}
3 changes: 2 additions & 1 deletion test/unit/RequestManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public function testSetHost()
$this->assertEquals($requestManager->host, 'http://localhost:8545');
$this->assertEquals($requestManager->timeout, 0.1);

$requestManager->host = $this->testRinkebyHost;
// there is no setter for host and timeout
$requestManager->host = $this->testHost2;
$requestManager->timeout = 1;
$this->assertEquals($requestManager->host, 'http://localhost:8545');
$this->assertEquals($requestManager->timeout, 0.1);
Expand Down

0 comments on commit 6c9a0d4

Please sign in to comment.