PhpOffice\PhpPresentation\Tests\Writer\ODPresentation\MetaInfManifestTest::testSlideBackground PHP Method

testSlideBackground() public method

public testSlideBackground ( )
    public function testSlideBackground()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oBkgImage = new Image();
        $oBkgImage->setPath(PHPPRESENTATION_TESTS_BASE_DIR . '/resources/images/PhpPresentationLogo.png');
        $oSlide->setBackground($oBkgImage);
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
        $element = '/manifest:manifest/manifest:file-entry[5]';
        $this->assertTrue($pres->elementExists($element, 'META-INF/manifest.xml'));
        $this->assertEquals('Pictures/' . str_replace(' ', '_', $oBkgImage->getIndexedFilename(0)), $pres->getElementAttribute($element, 'manifest:full-path', 'META-INF/manifest.xml'));
    }