mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 22:47:03 +08:00
31 lines
545 B
PHP
Executable File
31 lines
545 B
PHP
Executable File
<?php
|
|
namespace UserSshkey;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class GetTest extends TestCase {
|
|
public function setUp()
|
|
{
|
|
global $CI;
|
|
$CI->load->model('User_sshkey_model', 'userSshkeyModel');
|
|
}
|
|
|
|
public function testGet()
|
|
{
|
|
global $CI;
|
|
|
|
$sshkey = $CI->userSshkeyModel->get(TESTING_SSHKEY);
|
|
|
|
$this->assertIsArray($sshkey);
|
|
}
|
|
|
|
public function testGet_Empty()
|
|
{
|
|
global $CI;
|
|
|
|
$sshkey = $CI->userSshkeyModel->get('');
|
|
|
|
$this->assertFalse($sshkey);
|
|
}
|
|
}
|