diff options
Diffstat (limited to 'tests/simple_unit/SqlMap/StatementTest.php')
| -rw-r--r-- | tests/simple_unit/SqlMap/StatementTest.php | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/simple_unit/SqlMap/StatementTest.php b/tests/simple_unit/SqlMap/StatementTest.php index 671cae77..3ac0a3ab 100644 --- a/tests/simple_unit/SqlMap/StatementTest.php +++ b/tests/simple_unit/SqlMap/StatementTest.php @@ -41,8 +41,7 @@ class StatementTest extends BaseCase  	 */
  	function testOpenConnection()
  	{
 -		$conn = $this->getConnection();
 -		$this->sqlmap->setDbConnection($conn);
 +		$conn = $this->sqlmap->getDbConnection();
  		$conn->setActive(true);
  		$account= $this->sqlmap->QueryForObject("SelectWithProperty");
  		$conn->setActive(false);
 @@ -644,7 +643,7 @@ class StatementTest extends BaseCase  	 */
  	function testExecuteQueryForWithComplexJoined()
  	{
 -		$a = $this->sqlmap->QueryForObject("SelectComplexJoined",null);
 +		$a = $this->sqlmap->QueryForObject("SelectComplexJoined");
  		$this->assertNotNull($a);
  		$this->assertNotNull($a->getB());
  		$this->assertNotNull($a->getB()->getC());
  | 
