Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
shanliu committed Sep 22, 2019
1 parent 50a0a0f commit 461dd61
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions tests/classes/TestLSYSEntity/EntityTest71.php
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());
}
}

0 comments on commit 461dd61

Please sign in to comment.