Exemplo n.º 1
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\TabButton';
     parent::setUp();
     $this->item = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article')->getAdapter(current($this->loadTestEntities('articles')));
     $this->jooseBridge = $this->getMock('Psc\\CMS\\Item\\JooseBridge', array('setItem', 'link', 'autoLoad', 'html'), array($this->item), '', TRUE, TRUE, TRUE, $cloneArgs = FALSE);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\HTML\\Page5';
     parent::setUp();
     $this->page5 = new Page5();
     $this->html = $this->page5->html();
 }
Exemplo n.º 3
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\DropBox2';
     parent::setUp();
     $this->tags = $this->loadTestEntities('tags');
     $this->dropBox = new DropBox2('tags', $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Tag'), array($this->tags['t1'], $this->tags['t2']), DropBox2::MULTIPLE);
 }
Exemplo n.º 4
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\LayoutManager';
     parent::setUp();
     $this->layoutManager = new LayoutManager(new \Psc\UI\UploadService('/', '/'));
     $this->pageContentStream = ContentSTream::create('de', 'page-content', 'default');
 }
Exemplo n.º 5
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\Component';
     $this->assertNotEmpty($this->componentClass, '$this->componentClass in setUp setzen!');
     $this->test->object = $this->component = $this->createComponent();
     parent::setUp();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CSS\\Manager';
     parent::setUp();
     $this->manager = Manager::instance('test');
     $this->manager->register('css/some/test.css');
     $this->manager->enqueue('test');
 }
Exemplo n.º 7
0
 public function setUp()
 {
     $this->someBody = array('format' => 'xlsx', 'soundExport' => true, 'label' => array('autoComplete' => 'aclabel with spaces', 'remove' => 'remove it'));
     if (\Psc\PSC::isTravis()) {
         $this->markTestSkipped('Kein Webserver bei Travis');
     }
     parent::setUp();
 }
Exemplo n.º 8
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Item\\Adapter';
     parent::setUp();
     $this->entity = current($this->loadTestEntities('articles'));
     $this->entity->setId(7);
     $this->adapter = new Adapter($this->entity, $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article'));
 }
Exemplo n.º 9
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\DropBoxButton';
     $this->bridgedClass = 'Psc\\CMS\\Item\\DropBoxButtonable';
     parent::setUp();
     $this->item = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article')->getAdapter(current($this->loadTestEntities('articles')))->getDropBoxButtonable();
     $this->jooseBridge = $this->getMock('Psc\\CMS\\Item\\JooseBridge', array('setItem', 'link', 'autoLoad', 'html'), array($this->item));
 }
Exemplo n.º 10
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntityGridPanel';
     parent::setUp();
     $this->entities = $this->loadTestEntities('users');
     $this->entityMeta = $this->getModule('Doctrine')->getEntityMeta('User');
     $this->entityGridPanel = new EntityGridPanel($this->entityMeta, $this->getTranslationContainer(), 'User Verwaltung');
 }
Exemplo n.º 11
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\EntityForm';
     parent::setUp();
     $this->entity = new \Psc\Doctrine\TestEntities\Person('Mr Roboto');
     $this->entity->setIdentifier($id = 17);
     $this->form = new EntityForm($this->entity, new RequestMeta('PUT', '/entities/persons/mr-roboto'));
 }
Exemplo n.º 12
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\GridPanel';
     parent::setUp();
     $this->gridPanel = new GridPanel('A nice Looking Panel for items in a Table', $this->getTranslationContainer());
     $this->gridPanel->createColumn('spalte1', $this->getType('String'));
     $this->gridPanel->createColumn('spalte2', $this->getType('Integer'));
     $this->gridPanel->createColumn('spalte3', $this->getType('Integer'), 'Spalte 3');
 }
Exemplo n.º 13
0
 public function setUp()
 {
     //$this->chainClass = 'Psc\UI\ComboDropBox2';
     parent::setUp();
     $this->relationEntityMeta = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Tag');
     $this->avaibleItems = $this->relationEntityMeta->getAutoCompleteRequestMeta();
     //$this->entityMeta = $this->getEntityMeta('Psc\Doctrine\TestEntities\Article');
     $this->comboBox = new ComboBox2('tags', $this->avaibleItems, $this->relationEntityMeta);
     $this->dropBox = new DropBox2('tags', $this->relationEntityMeta, array());
     $this->comboDropBox = new ComboDropBox2($this->comboBox, $this->dropBox, 'Tags Pflegen');
 }
Exemplo n.º 14
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\Tabs2';
     parent::setUp();
     $deTitle = 'Willkommen';
     $enTitle = 'Welcome';
     $deContent = 'willkommen im Psc - CMS';
     $enContent = 'Welcome to Psc - CMS';
     $this->welcome = $this->doublesManager->createTemplateMock($deContent, $this->once());
     $this->welcome->mergeI18n(array('de' => array('title' => $deTitle), 'en' => array('title' => $enTitle)));
     $this->tabs = new Tabs2(array(), $this->welcome);
 }
Exemplo n.º 15
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\RightContent';
     parent::setUp();
     $this->dc = $this->getMock('Psc\\Doctrine\\DCPackage', array('getEntityMeta'), array(), '', FALSE);
     $this->cmsRightContent = new RightContent($this->dc, $this->getTranslationContainer());
     $this->dc->expects($this->any())->method('getEntityMeta')->will($this->returnValue($this->getEntityMeta('user', $this->getModule('Doctrine'))));
     $this->list = $this->getMock('Psc\\UI\\DropContentsList');
     $this->cmsRightContent->populateLists($this);
     // this tests implements DropContentsListCreater
     $this->entity = new UserEntity('*****@*****.**');
 }
Exemplo n.º 16
0
 public function setUp()
 {
     parent::setUp();
     $this->module = $this->getModule('Doctrine');
     $this->setUpModule($this->module);
     $this->setUpEntityManager();
     $this->dc = $this->getDoctrinePackage();
     $this->setUpFixturesManager();
     if (self::$setupDatabase) {
         $this->setUpDatabase();
         self::$setupDatabase = FALSE;
     }
 }
Exemplo n.º 17
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\ComboBox2';
     parent::setUp();
     $this->entityMeta = $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Tag');
 }
Exemplo n.º 18
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\SplitPane';
     parent::setUp();
     $this->pane = new SplitPane(50, 'left-content', 'right-content');
 }
Exemplo n.º 19
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\Calendar';
     parent::setUp();
     $this->calendar = new Calendar();
 }
Exemplo n.º 20
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Form';
     parent::setUp();
     $this->form = new Form(NULL, '/test', 'get');
 }
Exemplo n.º 21
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\ComponentsForm';
     parent::setUp();
     $this->form = $this->createComponentsForm();
 }
Exemplo n.º 22
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\HTML\\FrameworkPage';
     parent::setUp();
     $this->page = new FrameworkPage();
 }
Exemplo n.º 23
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\Component\\I18nWrapper';
     parent::setUp();
     //$this->i18nWrapper = new I18nWrapper();
 }
Exemplo n.º 24
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\PanelButtons';
     parent::setUp();
     $this->translationContainer = $this->createTranslationContainer($this->buildTranslations('cms')->locale('de')->trans('panel.buttons.save', 'speichern')->trans('panel.buttons.reload', 'neu laden')->trans('panel.buttons.close', 'schließen')->trans('panel.buttons.save-close', 'speichern und schließen')->trans('panel.buttons.insert', 'neu erstellen')->trans('panel.buttons.insert-open', 'neu erstellen und geöffnet lassen')->trans('panel.buttons.reset', 'zurücksetzen')->trans('panel.buttons.preview', 'vorschau')->locale('en')->trans('panel.buttons.save', 'save')->trans('panel.buttons.reload', 'reload')->trans('panel.buttons.close', 'close')->trans('panel.buttons.save-close', 'save and close')->trans('panel.buttons.insert', 'insert')->trans('panel.buttons.insert-open', 'save and open in new tab')->trans('panel.buttons.reset', 'reset')->trans('panel.buttons.preview', 'preview'));
 }
Exemplo n.º 25
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\JS\\jQueryTemplate';
     parent::setUp();
     $this->jQueryTemplate = new jQueryTemplate('<button type="button" class="page" rel="${page.num}">${page.num}</button>');
 }
Exemplo n.º 26
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\UI\\Button';
     parent::setUp();
     $this->button = new Button('a nice Button');
 }
Exemplo n.º 27
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\HTML\\WidgetBase';
     parent::setUp();
 }
Exemplo n.º 28
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\SearchPanel';
     parent::setUp();
 }
Exemplo n.º 29
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Item\\MetaAdapter';
     parent::setUp();
     $this->adapter = new MetaAdapter($this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Article'));
 }
Exemplo n.º 30
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Item\\RightContentLink';
     parent::setUp();
     $this->link = new RightContentLink(new \Psc\CMS\RequestMeta('GET', '/api/products/test/some/custom/action'), 'My Custom Action');
 }