PhpPresentation\Tests\Writer\PowerPoint2007\PptCommentsTest::testComments PHP Метод

testComments() публичный Метод

public testComments ( )
    public function testComments()
    {
        $expectedElement = '/p:cmLst/p:cm';
        $oAuthor = new Comment\Author();
        $oComment = new Comment();
        $oComment->setAuthor($oAuthor);
        $this->oPresentation->getActiveSlide()->addShape($oComment);
        $pres = TestHelperDOCX::getDocument($this->oPresentation, 'PowerPoint2007');
        $this->assertTrue($pres->fileExists('ppt/comments/comment1.xml'));
        $this->assertTrue($pres->elementExists($expectedElement, 'ppt/comments/comment1.xml'));
        $this->assertEquals(0, $pres->getElementAttribute($expectedElement, 'authorId', 'ppt/comments/comment1.xml'));
    }