PhpOffice\PhpPresentation\Tests\Writer\PowerPoint2007\LayoutPack\TemplateBasedTest::testFindLayoutId PHP Method

testFindLayoutId() public method

public testFindLayoutId ( )
    public function testFindLayoutId()
    {
        $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Sample_00_01.pptx';
        $templateBased = new TemplateBased($file);
        $layouts = $templateBased->getLayouts();
        foreach ($layouts as $layout) {
            $foundLayoutId = $templateBased->findLayoutId($layout['name']);
            $this->assertEquals($layout['id'], $foundLayoutId);
        }
    }