-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shanliu
committed
Sep 22, 2019
1 parent
50a0a0f
commit 461dd61
Showing
1 changed file
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
<?php | ||
namespace TestLSYSEntity; | ||
use PHPUnit\Framework\TestCase; | ||
use TestLSYSEntityLib\DomeModelTest; | ||
use LSYS\Entity; | ||
class EntityTest71 extends TestCase | ||
{ | ||
public function testEntityPkArrChange() | ||
{ | ||
$model1=new DomeModelTestPkArr(); | ||
$e=new Entity($model1); | ||
$e->id=rand(300,5000); | ||
$e->code=uniqid("code_"); | ||
$e->name="ddddddddddddddd"; | ||
$e->enname="ddddddddddddddd"; | ||
$e->save(); | ||
$this->assertTrue($e->saved()); | ||
$e->enname="dddddddddd"; | ||
$e->save(); | ||
$this->assertTrue($e->saved()); | ||
} | ||
<?php | ||
namespace TestLSYSEntity; | ||
use PHPUnit\Framework\TestCase; | ||
use TestLSYSEntityLib\DomeModelTest; | ||
use LSYS\Entity; | ||
use TestLSYSEntityLib\DomeModelTestPkArr; | ||
class EntityTest71 extends TestCase | ||
{ | ||
public function testEntityPkArrChange() | ||
{ | ||
$model1=new DomeModelTestPkArr(); | ||
$e=new Entity($model1); | ||
$e->id=rand(300,5000); | ||
$e->code=uniqid("code_"); | ||
$e->name="ddddddddddddddd"; | ||
$e->enname="ddddddddddddddd"; | ||
$e->save(); | ||
$this->assertTrue($e->saved()); | ||
$e->enname="dddddddddd"; | ||
$e->save(); | ||
$this->assertTrue($e->saved()); | ||
} | ||
} |