protected function setUp() { parent::setUp(); $this->partClass = '\\tests\\QATools\\QATools\\BEM\\Fixture\\Element\\BlockChild'; $this->pageFactory->shouldReceive('initElements')->once()->andReturn($this->pageFactory); $decorator = m::mock('\\QATools\\QATools\\PageObject\\PropertyDecorator\\IPropertyDecorator'); $this->pageFactory->shouldReceive('createDecorator')->once()->andReturn($decorator); $this->_nodes = array($this->createNodeElement('top-xpath-1'), $this->createNodeElement('top-xpath-2')); $this->_elementLocator = m::mock('\\QATools\\QATools\\BEM\\ElementLocator\\BEMElementLocator'); }
protected function setUp() { parent::setUp(); $this->partClass = '\\QATools\\QATools\\BEM\\Element\\Element'; $this->_webElement = m::mock('\\QATools\\QATools\\PageObject\\Element\\WebElement'); }