mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Created first test
This commit is contained in:
		
							
								
								
									
										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());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user