Skip to content

Commit f645321

Browse files
committed
Support for Visibility for slides (PHPUnit fixes)
1 parent 844401b commit f645321

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/PhpPresentation/Tests/Writer/ODPresentation/ObjectsChartTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function testAxisFont()
6767
$oShape->getPlotArea()->getAxisY()->getFont()->setName('Arial');
6868

6969
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'ODPresentation');
70+
$this->assertTrue($oXMLDoc->fileExists('Object 1/content.xml'));
7071

7172
$element = '/office:document-content/office:body/office:chart/chart:chart';
7273
$this->assertTrue($oXMLDoc->elementExists($element, 'Object 1/content.xml'));

tests/PhpPresentation/Tests/_includes/TestHelperDOCX.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class TestHelperDOCX
3535
/**
3636
* Get document content
3737
*
38-
* @param \PhpOffice\PhpPresentation\PhpPresentation $PhpPresentation
38+
* @param \PhpOffice\PhpPresentation\PhpPresentation $phpPresentation
3939
* @param string $writerName
4040
* @return \PhpOffice\PhpPresentation\Tests\XmlDocument
4141
*/
42-
public static function getDocument(PhpPresentation $phpPresentation, $writerName = 'PowerPoint2007')
42+
public static function getDocument(PhpPresentation $phpPresentation, $writerName)
4343
{
4444
self::$file = tempnam(sys_get_temp_dir(), 'PhpPresentation');
4545
if (!is_dir(sys_get_temp_dir() . '/PhpPresentation_Unit_Test/')) {

0 commit comments

Comments
 (0)