public function canGetTemplateVariables()
{
$provider = $this->getMock($this->createInstanceClassName(), array('getPageValues', 'getGrid', 'getForm'));
$provider->expects($this->once())->method('getPageValues')->willReturnArgument(0);
$provider->expects($this->once())->method('getForm')->willReturn(NULL);
$provider->expects($this->once())->method('getGrid')->willReturn(NULL);
ObjectAccess::setProperty($provider, 'templatePaths', array(), TRUE);
$provider->setTemplatePathAndFilename($this->getAbsoluteFixtureTemplatePathAndFilename(self::FIXTURE_TEMPLATE_ABSOLUTELYMINIMAL));
$record = $this->getBasicRecord();
$values = $provider->getTemplateVariables($record);
$this->assertIsArray($values);
}