PhpPresentation\Tests\Writer\PowerPoint2007\PptViewPropsTest::testCommentVisible PHP Method

testCommentVisible() public method

public testCommentVisible ( )
    public function testCommentVisible()
    {
        $expectedElement = '/p:viewPr';
        $oPhpPresentation = new PhpPresentation();
        $oPhpPresentation->getPresentationProperties()->setCommentVisible(true);
        $oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
        $this->assertTrue($oXMLDoc->fileExists('ppt/viewProps.xml'));
        $this->assertTrue($oXMLDoc->elementExists($expectedElement, 'ppt/viewProps.xml'));
        $this->assertEquals(1, $oXMLDoc->getElementAttribute($expectedElement, 'showComments', 'ppt/viewProps.xml'));
    }