diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-25 17:55:51 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-25 17:55:51 +0100 |
commit | a3388622287e218beddfa14a47ed677d4307b36b (patch) | |
tree | 1b4c7ac8597b1cc798b6683d4a81c90d38de12f6 /tests/simple_unit/SqlMap/TestQueryForMap.php | |
parent | c7fd3e1167b6f2fa7746edbd0fb8f8c1694c61f9 (diff) |
Removed simpletest and moved all tests in the unit tree
Tests are executed now, but a lot of them need fixing.
Diffstat (limited to 'tests/simple_unit/SqlMap/TestQueryForMap.php')
-rw-r--r-- | tests/simple_unit/SqlMap/TestQueryForMap.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/simple_unit/SqlMap/TestQueryForMap.php b/tests/simple_unit/SqlMap/TestQueryForMap.php deleted file mode 100644 index 2de020a8..00000000 --- a/tests/simple_unit/SqlMap/TestQueryForMap.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -require_once(dirname(__FILE__).'/BaseCase.php'); - -class TestQueryForMap extends BaseCase -{ - function __construct() - { - parent::__construct(); - $this->initSqlMap(); - } - - /** - * Test ExecuteQueryForMap : Hashtable. - */ - function testExecuteQueryForMap() - { - $map = $this->sqlmap->QueryForMap("GetAllAccountsViaResultClass", null, "FirstName",null,0,2); - $this->assertIdentical(2, count($map)); - $this->assertAccount1($map["Joe"]); - - $this->assertIdentical(1, $map["Joe"]->getID()); - $this->assertIdentical(2, $map["Averel"]->getID()); - } - - /** - * Test ExecuteQueryForMap with value property : - * "FirstName" as key, "EmailAddress" as value - */ - function testExecuteQueryForMapWithValueProperty() - { - $map = $this->sqlmap->QueryForMap("GetAllAccountsViaResultClass", null, - "FirstName", "EmailAddress",1,3); - - $this->assertIdentical(3, count($map)); - - $this->assertIdentical("Averel.Dalton@somewhere.com", $map["Averel"]); - $this->assertNull($map["William"]); - $this->assertIdentical("Jack.Dalton@somewhere.com", $map["Jack"]); - } - -} |