/**
* Test the custom paths for Templates
*
* @dataProvider provider
*/
public function testCustomTemplatePaths($config)
{
$pdf = new CakePdf($config);
$pdf->viewVars(['post' => 'testing']);
$pdf->template('view', 'default');
$pdf->templatePath('Posts/pdf');
$result = $pdf->output();
$expected = '<h2>Rendered with default layout</h2>' . "\n" . 'Post data: testing';
$this->assertEquals($expected, $result);
}