Ajoute des tests sur Account

This commit is contained in:
Clement Desmidt 2017-09-30 15:42:28 +02:00
parent 26911d0f8d
commit 768af6e636

View File

@ -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());
}
}