mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Implemented NameSpacePathMap as attribut
This commit is contained in:
		@@ -9,6 +9,9 @@ use App\Domain\SourceManagement\SourceMetaInformation;
 | 
			
		||||
use App\Domain\FormManagement\FormMetaInformation;
 | 
			
		||||
use App\Domain\TemplateManagement\TemplatePathInformationInterface;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @author kevinfrantz
 | 
			
		||||
 */
 | 
			
		||||
class FormMetaInformationTest extends TestCase
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ class SourceMetaInformationTest extends TestCase
 | 
			
		||||
    {
 | 
			
		||||
        $subset = ['source', 'complex'];
 | 
			
		||||
        $amount = count($subset);
 | 
			
		||||
        $basicPathArray = $this->sourceMetaInformation->getBasicPathArray();
 | 
			
		||||
        $basicPathArray = $this->sourceMetaInformation->getNamespacePathMap()->getFolders();
 | 
			
		||||
        for ($index = 0; $index < $amount; ++$index) {
 | 
			
		||||
            $this->assertEquals($subset[$index], $basicPathArray[$index]);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ class TemplatePathInformationTest extends TestCase
 | 
			
		||||
    {
 | 
			
		||||
        $this->source = new FirstNameSource();
 | 
			
		||||
        $sourceMeta = new SourceMetaInformation($this->source);
 | 
			
		||||
        $folder = implode('/', $sourceMeta->getBasicPathArray());
 | 
			
		||||
        $folder = $sourceMeta->getNamespacePathMap()->getPath();
 | 
			
		||||
        $this->templateMeta = new TemplatePathInformation($sourceMeta->getPureName(), $folder, 'entity');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -56,7 +56,7 @@ class TemplatePathInformationTest extends TestCase
 | 
			
		||||
            $this->templateMeta->reloadType($type);
 | 
			
		||||
            $this->assertEquals($this->getExpectedPath($type, 'atom'), $this->templateMeta->getAtomTemplatePath());
 | 
			
		||||
            $this->assertEquals($this->getExpectedPath($type, 'molecule'), $this->templateMeta->getMoleculeTemplatePath());
 | 
			
		||||
            $this->assertEquals($type, $this->templateMeta->getTemplateType());
 | 
			
		||||
            $this->assertEquals($type, $this->templateMeta->getType());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user