PHP Класс Sulu\Bundle\ContentBundle\Behat\BaseStructureContext

Наследование: extends Sulu\Bundle\TestBundle\Behat\BaseContext, implements Behat\Behat\Context\SnippetAcceptingContext
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$templatePaths Temporary structure template paths

Открытые методы

Метод Описание
removeTempStructureTemplates ( ) Remove the generated templates after the scenario has completed.

Защищенные методы

Метод Описание
createStructureTemplate ( string $type, string $name, string $template ) Create a structure and install a structure template of then given type (page|structure), name with the given template contents.
createStructures ( string $type, array $data ) Create structures of the given type using the given data.
getDocumentManager ( ) : Sulu\Component\DocumentManager\DocumentManagerInterface Returns the document manager.

Описание методов

createStructureTemplate() защищенный Метод

Will choose the directory to install the template into based upon the default directory for the given type. These installed templates will be removed after the scenario has been completed.
protected createStructureTemplate ( string $type, string $name, string $template )
$type string Type of the structure template
$name string Name of the structure template to create
$template string The contents of the XML template

createStructures() защищенный Метод

Data should be of the form: array( array( 'title' => null, 'url' => null, 'template' => null, 'locale' => 'de', 'data' => '}', 'parent' => null, ), ),
protected createStructures ( string $type, array $data )
$type string
$data array

getDocumentManager() защищенный Метод

Returns the document manager.
protected getDocumentManager ( ) : Sulu\Component\DocumentManager\DocumentManagerInterface
Результат Sulu\Component\DocumentManager\DocumentManagerInterface

removeTempStructureTemplates() публичный Метод

Remove the generated templates after the scenario has completed.

Описание свойств

$templatePaths защищенное свойство

Temporary structure template paths
protected $templatePaths