summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxue <>2006-10-23 12:08:11 +0000
committerxue <>2006-10-23 12:08:11 +0000
commite4c9e8e311dc09424e4b865f53a0a6fe6872c4e6 (patch)
tree094321633b3d900a83dd1b01864fb9010173a72c /tests
parent5dd2b03677b8937f704cc263bf78d6174a0fe00e (diff)
merge from 3.0 branch till 1475.
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/validators/tests/DatePickerTestCase.php5
-rw-r--r--tests/unit/Collections/TListTest.php2
-rw-r--r--tests/unit/Collections/TMapTest.php2
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
index 297756c2..95eb88e3 100644
--- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
@@ -17,6 +17,9 @@ class DatePickerTestCase extends SeleniumTestCase
$this->click("{$base}submit1");
$this->assertVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
+
+ //the range validator is visible because the date is a drop down list
+ //thus has default value != ""
$this->assertVisible("{$base}validator4", "");
$this->assertVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
@@ -60,4 +63,4 @@ class DatePickerTestCase extends SeleniumTestCase
}
-?> \ No newline at end of file
+?>
diff --git a/tests/unit/Collections/TListTest.php b/tests/unit/Collections/TListTest.php
index c9190da6..e090728c 100644
--- a/tests/unit/Collections/TListTest.php
+++ b/tests/unit/Collections/TListTest.php
@@ -185,7 +185,7 @@ class TListTest extends PHPUnit2_Framework_TestCase {
}
public function testArrayMisc() {
- $this->assertEquals(1,count($this->list));
+ $this->assertEquals($this->list->Count,count($this->list));
$this->assertTrue(isset($this->list[1]));
$this->assertFalse(isset($this->list[2]));
}
diff --git a/tests/unit/Collections/TMapTest.php b/tests/unit/Collections/TMapTest.php
index af92fd6a..f7661afd 100644
--- a/tests/unit/Collections/TMapTest.php
+++ b/tests/unit/Collections/TMapTest.php
@@ -146,7 +146,7 @@ class TMapTest extends PHPUnit2_Framework_TestCase {
public function testArrayMisc()
{
- $this->assertEquals(1,count($this->map));
+ $this->assertEquals($this->map->Count,count($this->map));
$this->assertTrue(isset($this->map['key1']));
$this->assertFalse(isset($this->map['unknown key']));
}