PhpOffice\PhpPresentation\Tests\Writer\ODPresentation\ContentTest::testDrawingWithHyperlink PHP Method

    public function testDrawingWithHyperlink()
    {
        $oSlide = $this->oPresentation->getActiveSlide();
        $oShape = $oSlide->createDrawingShape();
        $oShape->setPath(PHPPRESENTATION_TESTS_BASE_DIR . '/resources/images/PhpPresentationLogo.png');
        $oShape->getHyperlink()->setUrl('https://github.com/PHPOffice/PHPPresentation/');
        $pres = TestHelperDOCX::getDocument($this->oPresentation, 'ODPresentation');
        $element = '/office:document-content/office:body/office:presentation/draw:page/draw:frame/office:event-listeners/presentation:event-listener';
        $this->assertTrue($pres->elementExists($element, 'content.xml'));
        $this->assertEquals('https://github.com/PHPOffice/PHPPresentation/', $pres->getElementAttribute($element, 'xlink:href', 'content.xml'));
    }