protected function setUp() { if (is_null($this->elementClass)) { $this->elementClass = '\\aik099\\QATools\\HtmlElements\\Element\\Select'; } parent::setUp(); }
protected function setUp() { if (is_null($this->elementClass)) { $this->elementClass = '\\aik099\\QATools\\HtmlElements\\Element\\SelectOption'; } $this->select = m::mock('\\aik099\\QATools\\HtmlElements\\Element\\Select'); parent::setUp(); }
/** * Occurs before element creation in setUp. * * @return void */ protected function setUpBeforeCreateElement() { parent::setUpBeforeCreateElement(); $two_times_tests = array('testFromNodeElement', 'testToString', 'testFill', 'testGetPageFactory', 'testWaitFor'); $times = in_array($this->getName(), $two_times_tests) ? 2 : 1; $this->pageFactory->shouldReceive('initElementContainer')->times($times)->andReturn($this->pageFactory); $this->pageFactory->shouldReceive('initElements')->times($times)->andReturn($this->pageFactory); $decorator = m::mock('\\aik099\\QATools\\PageObject\\PropertyDecorator\\IPropertyDecorator'); $this->pageFactory->shouldReceive('createDecorator')->times($times)->andReturn($decorator); }