/** * Occurs before "setUp" method is finished configuration jobs. * * @return void */ protected function beforeSetUpFinish() { parent::beforeSetUpFinish(); $decorator = m::mock('\\QATools\\QATools\\PageObject\\PropertyDecorator\\IPropertyDecorator'); $this->pageFactory->shouldReceive('createDecorator')->andReturn($decorator); $this->pageFactory->shouldReceive('initElements')->andReturn($this->pageFactory); }
protected function setUp() { if (is_null($this->collectionClass)) { $this->collectionClass = '\\QATools\\QATools\\PageObject\\Proxy\\WebElementProxy'; $this->collectionElementClass = '\\QATools\\QATools\\PageObject\\Element\\IWebElement'; } parent::setUp(); }
/** * Creates a proxy. * * @param boolean $replace_element_class Replace element class. * * @return WebElementProxy */ protected function createElement($replace_element_class = true) { $proxy = parent::createElement($replace_element_class); if ($replace_element_class) { $proxy->setClassName('\\tests\\QATools\\QATools\\PageObject\\Fixture\\Element\\WebElementChild'); } return $proxy; }
protected function setUp() { $this->ignoreLocatorTests[] = 'testGetName'; if (is_null($this->collectionClass)) { $this->collectionClass = '\\QATools\\QATools\\HtmlElements\\Proxy\\TypifiedElementProxy'; $this->collectionElementClass = '\\QATools\\QATools\\HtmlElements\\Element\\ITypifiedElement'; } parent::setUp(); }
protected function setUp() { $this->ignoreLocatorTests[] = 'testGetName'; $this->locatorClass = '\\QATools\\QATools\\BEM\\ElementLocator\\BEMElementLocator'; if (is_null($this->collectionClass)) { $this->collectionClass = '\\QATools\\QATools\\BEM\\Proxy\\ElementProxy'; $this->collectionElementClass = '\\QATools\\QATools\\BEM\\Element\\IElement'; } parent::setUp(); }