Example #1
0
 public function testGetParentPath()
 {
     $document = new \stdClass();
     $this->assertEquals(false, $this->extension->getParentPath($document));
     $this->uow->expects($this->once())->method('getDocumentId')->with($document)->will($this->returnValue('/foo/bar'));
     $this->assertEquals('/foo', $this->extension->getParentPath($document));
 }