add authors, composers, history and settings to Tune::merge()
This commit is contained in:
@@ -26,12 +26,14 @@ class TuneAttributeArrayBuilderTest extends \Codeception\Test\Unit
|
||||
|
||||
public function testAppendMusic()
|
||||
{
|
||||
$music = new \Enzyme\Axiom\Atoms\StringAtom('Abcd|');
|
||||
$music = 'Abcd|';
|
||||
$builder = new TuneAttributeArrayBuilder();
|
||||
|
||||
$tune = $builder->appendMusic($music)->getTune();
|
||||
|
||||
$this->assertInstanceOf(Tune::class, $tune);
|
||||
$this->assertEquals($music->getValue(), trim($tune->getMusic()));
|
||||
|
||||
$settings = $tune->getSettings();
|
||||
$this->assertEquals($music, trim($settings[0]->getMusic()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user