You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
726 B

<?php namespace Tests\Aauth\Libraries\Aauth;
use App\Libraries\Aauth;
class UtilityTest extends \CIUnitTestCase
{
public function setUp()
{
parent::setUp();
$this->library = new Aauth(null, true);
}
//--------------------------------------------------------------------
public function testFailModel()
{
$this->assertInstanceOf('\App\Models\Aauth\GroupToUserModel', $this->library->getModel('group to user'));
$this->assertInstanceOf('\App\Models\Aauth\GroupToUserModel', $this->library->getModel('group_to_user'));
$this->assertFalse($this->library->getModel('NotExisting'));
}
public function testFailCall()
{
$this->expectException('ErrorException');
$this->library->getNotExistingFunc();
}
}