Beispiel #1
0
 protected function setUp()
 {
     if (is_null($this->elementClass)) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\Link';
     }
     parent::setUp();
 }
 protected function setUp()
 {
     if (is_null($this->elementClass)) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\SelectOption';
     }
     $this->select = m::mock('\\QATools\\QATools\\HtmlElements\\Element\\Select');
     parent::setUp();
 }
Beispiel #3
0
 protected function setUp()
 {
     if (is_null($this->elementClass)) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\FileInput';
     }
     $this->expectedAttributes = array('type' => 'file');
     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('\\QATools\\QATools\\PageObject\\PropertyDecorator\\IPropertyDecorator');
     $this->pageFactory->shouldReceive('createDecorator')->times($times)->andReturn($decorator);
 }
Beispiel #5
0
 protected function setUp()
 {
     if (is_null($this->elementClass)) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\Button';
     }
     $this->expectedTagName = 'button';
     $this->ignoreExpectTypifiedNodeCheck[] = 'testAssertWrappedElementTagNotMatching';
     $this->ignoreExpectTypifiedNodeCheck[] = 'testAssertWrappedElementAttributeNotMatching';
     parent::setUp();
 }
Beispiel #6
0
 protected function setUp()
 {
     if (is_null($this->elementClass)) {
         $this->elementClass = '\\QATools\\QATools\\HtmlElements\\Element\\Select';
     }
     $this->ignoreExpectTypifiedNodeCheck[] = 'testGetOptions';
     $this->ignoreExpectTypifiedNodeCheck[] = 'testGetOptionsByValue';
     $this->ignoreExpectTypifiedNodeCheck[] = 'testGetOptionsByText';
     $this->expectedTagName = 'select';
     parent::setUp();
 }