Ajoute des tests

This commit is contained in:
Clement Desmidt
2017-09-29 15:58:43 +02:00
parent f7b6573375
commit 53d81b98fc
3 changed files with 43 additions and 0 deletions

33
tests/AccountTest.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
namespace Shikiryu\LBCReposter;
use Goutte\Client;
use PHPUnit\Framework\TestCase;
use Shikiryu\LBCReposter\Account;
class AccountTest extends TestCase
{
protected $account;
protected function setUp()
{
$config = new \Shikiryu\LBCReposter\Config([
'login' => 'text@example.com',
'password' => 'password',
]);
$this->account = new Account($config);
}
protected function tearDown()
{
$this->account = null;
}
public function testAdd()
{
$result = $this->account->getConfig();
$this->assertInstanceOf( \Shikiryu\LBCReposter\Config::class, $result );
}
}