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

testNote() public method

public testNote ( )
    public function testNote()
    {
        $oPhpPresentation = new PhpPresentation();
        $oSlide = $oPhpPresentation->getActiveSlide();
        $oNote = $oSlide->getNote();
        $oRichText = $oNote->createRichTextShape()->setHeight(300)->setWidth(600);
        $oRichText->createTextRun('testNote');
        $pres = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
        $element = '/office:document-content/office:body/office:presentation/draw:page/presentation:notes';
        $this->assertTrue($pres->elementExists($element, 'content.xml'));
        $element = '/office:document-content/office:body/office:presentation/draw:page/presentation:notes/draw:frame/draw:text-box/text:p/text:span';
        $this->assertTrue($pres->elementExists($element, 'content.xml'));
    }