ComunicAPI/tests/classes/models/APIClientTest.php
2018-07-12 14:05:56 +02:00

16 lines
325 B
PHP

<?php
//Include class
require_once(__DIR__."/../../../classes/models/APIClient.php");
use PHPUnit\Framework\TestCase;
class APIClientTest extends TestCase {
public function testConfirmHasTokenAfterSet(){
$client = new APIClient();
$client->set_token("token");
$this->assertEquals(TRUE, $client->has_token());
}
}