summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/tests/ButtonTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/validators/tests/ButtonTestCase.php')
-rwxr-xr-xtests/FunctionalTests/validators/tests/ButtonTestCase.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/validators/tests/ButtonTestCase.php b/tests/FunctionalTests/validators/tests/ButtonTestCase.php
index 90265156..7fc533a4 100755
--- a/tests/FunctionalTests/validators/tests/ButtonTestCase.php
+++ b/tests/FunctionalTests/validators/tests/ButtonTestCase.php
@@ -20,13 +20,13 @@ class ButtonTestCase extends PradoGenericSelenium2Test
// verify the first validation is passed
$this->pause(500);
- $this->assertNotContains('Button1 is clicked', $this->source());
+ $this->assertSourceNotContains('Button1 is clicked');
$this->type("ctl0_Content_TextBox1", "test");
$this->byId("ctl0_Content_ctl1")->click();
$this->assertNotVisible('ctl0_Content_ctl0');
$this->assertNotVisible('ctl0_Content_ctl2');
$this->assertNotVisible('ctl0_Content_ctl4');
- $this->assertContains('Button1 is clicked and valid', $this->source());
+ $this->assertSourceContains('Button1 is clicked and valid');
// verify the second validator shows the error
$this->byId("ctl0_Content_ctl3")->click();
@@ -36,13 +36,13 @@ class ButtonTestCase extends PradoGenericSelenium2Test
// verify the second validation is passed
$this->pause(500);
- $this->assertNotContains('Button2 is clicked', $this->source());
+ $this->assertSourceNotContains('Button2 is clicked');
$this->type("ctl0_Content_TextBox2", "test");
$this->byId("ctl0_Content_ctl3")->click();
$this->assertNotVisible('ctl0_Content_ctl0');
$this->assertNotVisible('ctl0_Content_ctl2');
$this->assertNotVisible('ctl0_Content_ctl4');
- $this->assertContains('Button2 is clicked and valid', $this->source());
+ $this->assertSourceContains('Button2 is clicked and valid');
// verify the third validator shows the error
$this->byId("ctl0_Content_ctl5")->click();
@@ -51,13 +51,13 @@ class ButtonTestCase extends PradoGenericSelenium2Test
$this->assertVisible('ctl0_Content_ctl4');
// verify the third validation is passed
- $this->assertContains('Button3 is clicked', $this->source());
- $this->assertNotContains('Button3 is clicked and valid', $this->source());
+ $this->assertSourceContains('Button3 is clicked');
+ $this->assertSourceNotContains('Button3 is clicked and valid');
$this->type("ctl0_Content_TextBox3", "test");
$this->byId("ctl0_Content_ctl5")->click();
$this->assertNotVisible('ctl0_Content_ctl0');
$this->assertNotVisible('ctl0_Content_ctl2');
$this->assertNotVisible('ctl0_Content_ctl4');
- $this->assertContains('Button3 is clicked and valid', $this->source());
+ $this->assertSourceContains('Button3 is clicked and valid');
}
}