CakePdf\Test\TestCase\Pdf\CakePdfTest::testCustomLayoutPaths PHP Метод

testCustomLayoutPaths() публичный Метод

Test the custom paths for Layouts
public testCustomLayoutPaths ( $config )
    public function testCustomLayoutPaths($config)
    {
        $pdf = new CakePdf($config);
        $pdf->viewVars(['data' => 'testing']);
        $pdf->template('testing', 'pdf');
        $pdf->layoutPath('customPath');
        $result = $pdf->output();
        $expected = 'CustomLayoutData: testing';
        $this->assertEquals($expected, $result);
    }