Пример #1
0
 /**
  * @covers ::isNew
  * @covers ::enforceIsNew
  */
 public function testIsNew()
 {
     // We provided an ID, so the entity is not new.
     $this->assertFalse($this->entity->isNew());
     // Force it to be new.
     $this->assertSame($this->entity, $this->entity->enforceIsNew());
     $this->assertTrue($this->entity->isNew());
 }