- 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:
2017-09-04 10:37:25 +07:00
parent 58264e39db
commit 62430ff905
5 changed files with 165 additions and 198 deletions

View File

@@ -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'));
}