summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-03-05 23:02:18 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-03-05 23:02:18 +0100
commit4ce02f6973aa40c313364b5ff7990f2244309790 (patch)
tree4e55faa0ff1ae31adcd3845cc94fe384fafa29ee /tests/FunctionalTests/features
parent82774aa0a41562a325f31c901584ec01c8238573 (diff)
Started cleaning tests' selenium2 compatibility layer
Diffstat (limited to 'tests/FunctionalTests/features')
-rwxr-xr-xtests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php14
-rwxr-xr-xtests/FunctionalTests/features/tests/MyTestCase.php2
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php
index 49a5db93..5292affb 100755
--- a/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php
+++ b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php
@@ -32,13 +32,13 @@ class BasicI18NTestCase extends PradoGenericSelenium2Test
function testI18N()
{
- $this->verifyTitle("Basic I18N Test", "");
- $this->assertTextPresent("Hello", "");
- $this->assertTextPresent("US$10,000.00", "");
- $this->assertTextPresent("2006年1月15日 上午12时00分00秒", "");
- $this->assertTextPresent("None", "");
- $this->assertTextPresent("One thing.", "");
- $this->assertTextPresent("Many things.", "");
+ $this->assertEquals("Basic I18N Test", $this->title());
+ $this->assertContains("Hello", $this->source());
+ $this->assertContains("US$10,000.00", $this->source());
+ $this->assertContains("2006年1月15日 上午12时00分00秒", $this->source());
+ $this->assertContains("None", $this->source());
+ $this->assertContains("One thing.", $this->source());
+ $this->assertContains("Many things.", $this->source());
}
}
*/ \ No newline at end of file
diff --git a/tests/FunctionalTests/features/tests/MyTestCase.php b/tests/FunctionalTests/features/tests/MyTestCase.php
index 682462fe..d748b6b0 100755
--- a/tests/FunctionalTests/features/tests/MyTestCase.php
+++ b/tests/FunctionalTests/features/tests/MyTestCase.php
@@ -5,6 +5,6 @@ class MyTestCase extends PradoGenericSelenium2Test
function test1()
{
$this->url('http://127.0.0.1');
- $this->assertTextNotPresent('asd');
+ $this->assertNotContains('asd', $this->source());
}
}