/** * Occurs before "setUp" method is finished configuration jobs. * * @return void */ protected function beforeSetUpFinish() { parent::beforeSetUpFinish(); $this->pageFactory->shouldReceive('initElementContainer')->andReturn($this->pageFactory); $decorator = m::mock('\\QATools\\QATools\\PageObject\\PropertyDecorator\\IPropertyDecorator'); $this->pageFactory->shouldReceive('createDecorator')->andReturn($decorator); $this->pageFactory->shouldReceive('initElements')->andReturn($this->pageFactory); }
protected function setUp() { $this->collectionClass = '\\QATools\\QATools\\PageObject\\Proxy\\WebElementCollectionProxy'; $this->collectionElementClass = '\\QATools\\QATools\\PageObject\\Element\\WebElement'; parent::setUp(); }