From 6c9a0d40ca6c4a87f5ed13d069806670e723d2d8 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Sun, 27 Aug 2023 13:22:24 +0800 Subject: [PATCH] Rename testRinkebyHost to testHost2 --- test/TestCase.php | 4 ++-- test/unit/ProviderTest.php | 3 ++- test/unit/RequestManagerTest.php | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/TestCase.php b/test/TestCase.php index 373a8b31..13d59417 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -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 diff --git a/test/unit/ProviderTest.php b/test/unit/ProviderTest.php index 53ee6a0a..32af5176 100644 --- a/test/unit/ProviderTest.php +++ b/test/unit/ProviderTest.php @@ -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'); } } \ No newline at end of file diff --git a/test/unit/RequestManagerTest.php b/test/unit/RequestManagerTest.php index 3498ef02..61dabdb2 100644 --- a/test/unit/RequestManagerTest.php +++ b/test/unit/RequestManagerTest.php @@ -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);