mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 04:58:59 +00:00
Created first test
This commit is contained in:
parent
4c3b9ff814
commit
a6021aeffc
16
tests/classes/models/APIClientTest.php
Normal file
16
tests/classes/models/APIClientTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user