예제 #1
0
 /**
  * @covers ::realDelete
  * @covers ::isSoftDeleted
  */
 public function testRealDelete()
 {
     $object = new User(null, State::SAVED);
     $object->delete();
     $this->assertTrue($object->isDeleted());
     $this->assertTrue($object->isSoftDeleted());
     $object->realDelete();
     $this->assertTrue($object->isDeleted());
     $this->assertFalse($object->isSoftDeleted());
 }