示例#1
0
 /**
  * @test
  */
 public function findAllVolumes()
 {
     $this->obj->flush();
     $volume = new Volume();
     $volume->number = 20;
     $volume->title = "Volume 20";
     $volume->pagenumber = 20;
     $this->obj->save($volume);
     $objs = $this->obj->find();
     $this->assertInternalType('array', $objs);
     $this->assertTrue(1 == count($objs));
     foreach ($objs as $obj) {
         $this->assertInstanceOf('TEIShredder\\Volume', $obj);
     }
 }
示例#2
0
 /**
  * {@inheritDoc}
  */
 protected function preProcessAction()
 {
     $this->volumeGateway->flush($this->setup);
     $this->sectionGateway->flush($this->setup);
     $this->pageGateway->flush($this->setup);
     $this->xmlChunkGateway->flush($this->setup);
 }