Beispiel #1
0
 /**
  * @covers ::delete
  * @covers ::initialize
  */
 public function testDelete()
 {
     $object = new User(null, State::SAVED);
     $this->assertNull($object->deletedAt);
     $object->delete();
     $this->assertNotNull($object->deletedAt);
     $this->assertEquals(State::DELETED, $object->getState());
 }