ComunicAPI/tests/classes/models/APIClientTest.php

15 lines
324 B
PHP
Raw Normal View History

2018-07-12 12:05:56 +00:00
<?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());
}
}