public function testFetchViewWithNoFileName()
 {
     $output = '';
     $template = false;
     $templatePath = 'wrong_template_path.pthml';
     $moduleName = 'Acme';
     $blockName = 'acme_test_module_test_block';
     $exception = "Invalid template file: '{$templatePath}' in module: '{$moduleName}' block's name: '{$blockName}'";
     $this->block->setTemplate($templatePath);
     $this->block->setData('module_name', $moduleName);
     $this->block->setNameInLayout($blockName);
     $this->validator->expects($this->once())->method('isValid')->with($template)->willReturn(false);
     $this->loggerMock->expects($this->once())->method('critical')->with($exception)->willReturn(null);
     $this->assertEquals($output, $this->block->fetchView($template));
 }