mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-02-10 01:48:41 +00:00
prepare for data import in demo
This commit is contained in:
parent
9153b89a78
commit
9f7f0152ca
|
|
@ -25,7 +25,7 @@ use Modules\Profile\Models\ProfileMapper;
|
||||||
*/
|
*/
|
||||||
class EmployeeMapperTest extends \PHPUnit\Framework\TestCase
|
class EmployeeMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
public function testCRUD() : void
|
public function testCR() : void
|
||||||
{
|
{
|
||||||
if (($profile = ProfileMapper::getFor(1, 'account'))->getId() === 0) {
|
if (($profile = ProfileMapper::getFor(1, 'account'))->getId() === 0) {
|
||||||
$profile = new Profile();
|
$profile = new Profile();
|
||||||
|
|
@ -36,7 +36,7 @@ class EmployeeMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
$id = ProfileMapper::create($profile);
|
$id = ProfileMapper::create($profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
$employee = new Employee(ProfileMapper::getFor(1, 'account'));
|
$employee = new Employee($profile);
|
||||||
|
|
||||||
$id = EmployeeMapper::create($employee);
|
$id = EmployeeMapper::create($employee);
|
||||||
self::assertGreaterThan(0, $employee->getId());
|
self::assertGreaterThan(0, $employee->getId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user