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

testGroup() public method

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