Beispiel #1
0
 protected function setUp()
 {
     $this->em = $this->getMockBuilder('Doctrine\\ORM\\EntityManager')->disableOriginalConstructor()->getMock();
     $this->entityPool = $this->getMockBuilder('Oro\\Bundle\\NotificationBundle\\Doctrine\\EntityPool')->disableOriginalConstructor()->getMock();
     $this->spool = new DbSpool($this->em, $this->entityPool, self::SPOOL_ITEM_CLASS);
     $this->spool->start();
     $this->spool->stop();
     $this->assertTrue($this->spool->isStarted());
 }
 public function setUp()
 {
     $this->em = $this->getMockBuilder('Doctrine\\ORM\\EntityManager')->disableOriginalConstructor()->getMock();
     $this->className = 'Oro\\Bundle\\NotificationBundle\\Entity\\SpoolItem';
     $this->spool = new DbSpool($this->em, $this->className);
     $this->spool->start();
     $this->spool->stop();
     $this->assertTrue($this->spool->isStarted());
 }