mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
40 lines
838 B
PHP
40 lines
838 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\TaskManager\Editor;
|
|
|
|
use Alchemy\Phrasea\TaskManager\Editor\DefaultEditor;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
class DefaultEditorTest extends EditorTestCase
|
|
{
|
|
public function provideDataForXMLUpdatesFromForm()
|
|
{
|
|
return [
|
|
['<?xml version="1.0" encoding="UTF-8"?>
|
|
<tasksettings>
|
|
</tasksettings>
|
|
', '<?xml version="1.0" encoding="UTF-8"?>
|
|
<tasksettings>
|
|
</tasksettings>', []
|
|
],
|
|
['<?xml version="1.0" encoding="UTF-8"?>
|
|
<tasksettings>
|
|
<customtag>value</customtag>
|
|
</tasksettings>
|
|
', '<?xml version="1.0" encoding="UTF-8"?>
|
|
<tasksettings>
|
|
<customtag>value</customtag>
|
|
</tasksettings>', []
|
|
],
|
|
];
|
|
}
|
|
|
|
protected function getEditor()
|
|
{
|
|
return new DefaultEditor($this->createTranslatorMock());
|
|
}
|
|
}
|