- Methods that are same (e.g. entry(), update(), delete(), etc.) defined in the parent.
- Added function when entry multiple rows (in this case is when putting categories). - Do test.
This commit is contained in:
@@ -13,23 +13,23 @@ class AccessTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
$this->assertTrue($access->showAll());
|
||||
|
||||
$args = [
|
||||
$user_entry = [
|
||||
'username' => 'gregorio',
|
||||
'password' => 'iniada13charc',
|
||||
];
|
||||
|
||||
$this->assertTrue($access->entry($args));
|
||||
$this->assertTrue($access->entry('user', $user_entry));
|
||||
|
||||
$args = [
|
||||
$user_update = [
|
||||
'username' => 'masihgregorio',
|
||||
'password' => 'inijuga3belas'
|
||||
];
|
||||
|
||||
$this->assertTrue($access->update($args, 1));
|
||||
$this->assertTrue($access->update('user', $user_update, 1));
|
||||
|
||||
$this->assertTrue($access->showSingle(1));
|
||||
|
||||
$this->assertTrue($access->delete(1));
|
||||
$this->assertTrue($access->delete('user', 1));
|
||||
|
||||
$this->assertTrue($access->dropTable('user'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user