Browse Source

Ajoute des tests sur `Account`

api
Clement Desmidt 4 years ago
parent
commit
768af6e636
  1. 18
      tests/AccountTest.php

18
tests/AccountTest.php

@ -24,10 +24,26 @@ class AccountTest extends TestCase
$this->account = null;
}
public function testAdd()
public function testGetConfig()
{
$result = $this->account->getConfig();
$this->assertInstanceOf( \Shikiryu\LBCReposter\Config::class, $result );
}
public function testGetClient()
{
$client = $this->account->getClient();
$this->assertInstanceOf( Client::class, $client );
}
public function testIsNotConnected()
{
$this->assertFalse($this->account->isConnected());
}
public function testIsConnected()
{
$this->account->setConnected(true);
$this->assertTrue($this->account->isConnected());
}
}
Loading…
Cancel
Save