/**
  * @author Panagiotis Vagenas <*****@*****.**>
  * @since  0.0.2
  */
 public function testLocate()
 {
     $rootDirPath = self::$rootDir->url();
     $filter = self::$WpPluginCore->getHookFactory()->getWhereTemplatesMayResideFilter(function ($paths) use($rootDirPath) {
         $paths[] = $rootDirPath;
         return $paths;
     });
     $filter->add();
     $this->assertNotEmpty(self::$templateObj->locate(self::$templateBaseName));
     $this->assertNotEmpty(self::$templateObj->locate(self::$templateName));
     $this->assertEmpty(self::$templateObj->locate(self::$misTemplateBaseName));
     $this->assertEmpty(self::$templateObj->locate(self::$misTemplateName));
     $filter->remove();
 }