Skip to content

Commit

Permalink
Merge pull request #41 from 1099511627776/fix_failingTests
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
serderovsh authored Jul 23, 2019
2 parents 2272b60 + 5bf271e commit 23a47e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TronTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class TronTest extends TestCase

public function test_isValidProvider()
{
$tron = new Tron(self::FULL_NODE_API, self::SOLIDITY_NODE_API);
$tron = new Tron(new HttpProvider(self::FULL_NODE_API), new HttpProvider(self::SOLIDITY_NODE_API));
$provider = new HttpProvider(self::FULL_NODE_API);

$this->assertEquals($tron->isValidProvider($provider), true);
}

public function test_setAddress()
{
$tron = new Tron(self::FULL_NODE_API, self::SOLIDITY_NODE_API);
$tron = new Tron(new HttpProvider(self::FULL_NODE_API), new HttpProvider(self::SOLIDITY_NODE_API));
$tron->setAddress(self::ADDRESS_HEX);

$this->assertEquals($tron->getAddress()['hex'],self::ADDRESS_HEX);
Expand All @@ -33,7 +33,7 @@ public function test_setAddress()

public function test_setDefaultBlock()
{
$tron = new Tron(self::FULL_NODE_API,self::SOLIDITY_NODE_API);
$tron = new Tron(new HttpProvider(self::FULL_NODE_API),new HttpProvider(self::SOLIDITY_NODE_API));
$tron->setDefaultBlock(1);
$this->assertEquals($tron->getDefaultBlock(), 1);

Expand Down

0 comments on commit 23a47e3

Please sign in to comment.