Metadata: saveCustom() fixes
This commit is contained in:
@@ -64,6 +64,7 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
$this->object->clearChanges();
|
||||
$this->object = NULL;
|
||||
}
|
||||
|
||||
@@ -265,6 +266,8 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
public function testSaveCustom()
|
||||
{
|
||||
$initStatusOptions = $this->object->get('entityDefs.Lead.fields.status.options');
|
||||
|
||||
$customPath = 'tests/unit/testData/cache/metadata/custom';
|
||||
|
||||
$paths = $this->reflection->getProperty('paths');
|
||||
@@ -290,6 +293,10 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
$this->assertEquals($data, $savedData);
|
||||
|
||||
$initStatusOptions[] = 'Test1';
|
||||
$initStatusOptions[] = 'Test2';
|
||||
$this->assertEquals($initStatusOptions, $this->object->get('entityDefs.Lead.fields.status.options'));
|
||||
|
||||
unlink($savedFile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user