예제 #1
0
 function Test_of_set_and_getParentModelName()
 {
     $AkTestMember = new AkTestMember();
     $this->assertEqual($AkTestMember->getParentModelName(), 'AkTestUser');
     $AkTestUser = new AkTestUser();
     $this->assertErrorPattern('/YourParentModelName/', $AkTestUser->getParentModelName());
     $AkTestUser = new AkTestUser();
     $AkTestUser->setParentModelName('FakeClass');
     $this->assertEqual($AkTestUser->getParentModelName(), 'FakeClass');
 }
예제 #2
0
 function Test_of_freeze_and_isFrozen()
 {
     $AkTestMember = new AkTestMember();
     $this->assertFalse($AkTestMember->isFrozen());
     $AkTestMember->freeze();
     $this->assertTrue($AkTestMember->isFrozen());
 }