mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Implemented NameSpacePathMap as attribut
This commit is contained in:
1 parent
77822b8e56
commit
c7c4e1c16e
8 files changed
+37
-45
No files matched your search
@@ -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
|
||||
{
|
||||
/**
|
||||
|
||||
+1
-1
@@ -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]);
|
||||
}
|
||||
|
||||
+2
-2
@@ -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