Permalink
Browse files

Moved a test to the RadioTest class as it works with radio buttons

  • Loading branch information...
1 parent a690e5b commit 958bc4730e3100900d397ffcb0ad5ac55cfb5c2b @stof stof committed May 16, 2014
Showing with 16 additions and 16 deletions.
  1. +0 −16 driver-testsuite/tests/Form/GeneralTest.php
  2. +16 −0 driver-testsuite/tests/Form/RadioTest.php
@@ -434,20 +434,4 @@ public function testSubmitEmptyTextarea()
$this->assertContains($searchString, $pageContent);
}
}
-
- /**
- * @see https://github.com/Behat/MinkSahiDriver/issues/32
- */
- public function testSetValueXPathEscaping()
- {
- $session = $this->getSession();
- $session->visit($this->pathTo('/advanced_form.html'));
- $page = $session->getPage();
-
- $sex = $page->find('xpath', '//*[@name = "sex"]' . "\n|\n" . '//*[@id = "sex"]');
- $this->assertNotNull($sex, 'xpath with line ending works');
-
- $sex->setValue('m');
- $this->assertEquals('m', $sex->getValue(), 'no double xpath escaping during radio button value change');
- }
}
@@ -73,4 +73,20 @@ public function testSameNameInMultipleForms()
$this->assertEquals('test', $option1->getValue());
$this->assertEquals('test3', $option2->getValue());
}
+
+ /**
+ * @see https://github.com/Behat/MinkSahiDriver/issues/32
+ */
+ public function testSetValueXPathEscaping()
+ {
+ $session = $this->getSession();
+ $session->visit($this->pathTo('/advanced_form.html'));
+ $page = $session->getPage();
+
+ $sex = $page->find('xpath', '//*[@name = "sex"]' . "\n|\n" . '//*[@id = "sex"]');
+ $this->assertNotNull($sex, 'xpath with line ending works');
+
+ $sex->setValue('m');
+ $this->assertEquals('m', $sex->getValue(), 'no double xpath escaping during radio button value change');
+ }
}

0 comments on commit 958bc47

Please sign in to comment.