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

testCommentWithoutAuthor() public method

    public function testCommentWithoutAuthor()
    {
        $oComment = new Comment();
        $this->oPresentation->getActiveSlide()->addShape($oComment);
        $pres = TestHelperDOCX::getDocument($this->oPresentation, 'ODPresentation');
        $element = '/office:document-content/office:body/office:presentation/draw:page/officeooo:annotation';
        $this->assertTrue($pres->elementExists($element, 'content.xml'));
        $this->assertFalse($pres->attributeElementExists($element, 'dc:creator', 'content.xml'));
    }