diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 2310fe9..44cdfc0 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -109,7 +109,8 @@ function resetSchema() { $this->exec( "CREATE TABLE dummy ( id $p, - test INTEGER + test INTEGER, + name VARCHAR(30) )" ); self::$pdo->commit(); diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index a64c1f5..44a9bac 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -398,21 +398,21 @@ function testInjection() { $dop = $this->conn; $dop->insert( 'dummy', array( - 'test' => 'hello?' + 'name' => 'hello?' ) )->exec(); $dop->update( 'dummy', array( - 'test' => 'hello? ::world' + 'name' => 'hello? ::world' ) )->exec(); $dop->query( 'dummy' ) - ->where( 'test', 'hello?' ) - ->where( 'test', '::world' ) + ->where( 'name', 'hello?' ) + ->where( 'name', '::world' ) ->exec(); $dop( '::insert', array( 'insert' => $dop->insert( 'dummy', array( - 'test' => 'hello?' + 'name' => 'hello?' ) ) ) )->exec();