Relation 727 B

123456789101112131415161718192021
  1. <?php
  2. namespace PhpOffice\PhpPresentation\Tests\Writer\PowerPoint2007;
  3. use PhpOffice\PhpPresentation\Shape\Comment;
  4. use PhpOffice\PhpPresentation\Tests\PhpPresentationTestCase;
  5. class RelationshipsTest extends PhpPresentationTestCase
  6. {
  7. protected $writerName = 'PowerPoint2007';
  8. public function testCommentsAuthors()
  9. {
  10. $oAuthor = new Comment\Author();
  11. $oComment = new Comment();
  12. $oComment->setAuthor($oAuthor);
  13. $this->oPresentation->getActiveSlide()->addShape($oComment);
  14. $this->assertZipXmlElementExists('ppt/_rels/presentation.xml.rels', '/Relationships/Relationship[@Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors"]');
  15. }
  16. }