✅ Ajoute des tests sur Account
This commit is contained in:
parent
26911d0f8d
commit
768af6e636
@ -24,10 +24,26 @@ class AccountTest extends TestCase
|
|||||||
$this->account = null;
|
$this->account = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAdd()
|
public function testGetConfig()
|
||||||
{
|
{
|
||||||
$result = $this->account->getConfig();
|
$result = $this->account->getConfig();
|
||||||
$this->assertInstanceOf( \Shikiryu\LBCReposter\Config::class, $result );
|
$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…
Reference in New Issue
Block a user