public function setUp() { $this->chainClass = 'Psc\\CMS\\Translation\\Container'; parent::setUp(); $this->translationContainer = $this->getContainer()->getTranslationContainer(); $this->translationContainer->setLocale('en'); }
public function setUp() { parent::setUp(); $this->converter = new NestedSetConverter(); $bridge = new DoctrineBridge($this->em); $bridge->beginTransaction(); $this->context = 'footer'; $start = $bridge->persist($this->createNode('Start')); $bridge->persist($this->createNode('Suche', $start)); $bridge->persist($this->createNode('Newsletter', $start)); $bridge->persist($this->createNode('Forum', $start)); $bridge->commit(); $bridge = new DoctrineBridge($this->em); $bridge->beginTransaction(); $this->context = 'meta'; $start = $bridge->persist($this->createNode('Start')); $bridge->persist($this->createNode('Impressum', $start)); $bridge->persist($this->createNode('Kontakt', $start)); $bridge->persist($this->createNode('Datenschutz', $start)); $bridge->commit(); $bridge = new DoctrineBridge($this->em); $bridge->beginTransaction(); $this->context = 'default'; $start = $bridge->persist($this->createNode('Start')); $bridge->persist($this->createNode('Über Uns', $start)); $bridge->persist($this->createNode('Produkte', $start)); $bridge->persist($this->createNode('Service', $start)); $bridge->commit(); $this->em->flush(); $this->repository = $this->em->getRepository('Psc\\Entities\\NavigationNode'); }
public function setUp() { $this->chainClass = 'Psc\\CMS\\CommonProjectCompiler'; parent::setUp(); $this->initInstancer(); $this->converter = $this->getContainer()->getContentStreamConverter(); $this->specification = \Psc\System\Console\CompileTestEntitiesCommand::getTeaserSpecification(); }
public function setUp() { parent::setUp(); $this->emm = $this->doublesManager->createEntityManagerMock(); $this->repository = $this->createRepositoryMock($this->emm, $this->entityFQN); $this->controller = $this->createEntityController(); $this->controller->setOptionalProperties(array('category')); $this->setEntityNameInController($this->entityFQN); }
public function setUp() { $this->chainClass = 'Psc\\CMS\\Controller\\ContentStreamController'; parent::setUp(); $this->controller = $this->getContainer()->getControllerFactory()->getController('ContentStream'); $this->cs1 = ContentStream::create('de', 'page-content', 'default', 'de-default'); $this->cs2 = ContentStream::create('en', 'page-content', 'default', 'en-default'); $this->initInstancer(); }
public function setUp() { $this->chainClass = 'Psc\\Entities\\ContentStream\\ContentStream'; parent::setUp(); $this->initInstancer(); $this->cs = ContentStream::create('de'); $this->headline1 = new Headline('Some Headline (H1)'); $this->headline2 = new Headline('Some Other Headline (H1)'); $this->paragraph = new Paragraph('the text of the paragraph can be spanned' . "\n" . 'along lines'); $this->cs1 = ContentStream::create('de'); $this->headline1->setContentStream($this->cs1); $this->headline2->setContentStream($this->cs1); $this->paragraph->setContentStream($this->cs1); $this->converter = $this->getContainer()->getContentStreamConverter(); $this->imageEntity = $this->instancer->getImage(1); $this->teaser = new SimpleTeaser('Have you noticed that?', 'This is the **markup text**'); $this->teaser->setImage($this->teaserImage = $this->instancer->getCSImage(1)); }