Пример #1
0
 /**
  * @Given /^I have a Doctrine entity for "([^"]*)"$/
  */
 public function iHaveADoctrineEntity($core)
 {
     $entity = $this->entities[$core];
     $entity->setId(\FS\SolrBundle\Tests\Util\EntityIdentifier::generate());
     $entity->setText('a Text');
     $this->entities[$core] = $entity;
 }
Пример #2
0
 /**
  * @Given /^I have a Doctrine entity$/
  */
 public function iHaveADoctrineEntity()
 {
     $this->solr = $this->getSolrInstance();
     $this->entity = new \FS\SolrBundle\Tests\Doctrine\Mapper\ValidTestEntity();
     $this->entity->setId(\FS\SolrBundle\Tests\Util\EntityIdentifier::generate());
     $this->entity->setText('a Text');
 }
Пример #3
0
 /**
  * @Given /^I have a Doctrine entity$/
  */
 public function iHaveADoctrineEntity()
 {
     $this->solr = $this->getSolrInstance();
     $this->entity = new ValidTestEntity();
     $this->entity->setId(EntityIdentifier::generate());
     $this->entity->setText('a Text');
 }
 /**
  * @Given /^I have a Doctrine entity for "([^"]*)"$/
  */
 public function iHaveADoctrineEntity($core)
 {
     $entity = $this->entities[$core];
     $entity->setId(EntityIdentifier::generate());
     $entity->setText('a Text');
     $this->entities[$core] = $entity;
 }