@@ -113,9 +113,12 @@ public function testMySQLQuery() {
113113 /**
114114 * @covers ezsql\ezsqlModel::secureSetup
115115 * @covers ezsql\ezsqlModel::secureReset
116+ * @covers ezsql\Database\ez_pdo::connect
116117 * @covers ezsql\Database\ez_pdo::handle
117118 * @covers ezsql\ezQuery::drop
119+ * @covers ezsql\ezQuery::create
118120 * @covers \primary
121+ * @covers \insert
119122 */
120123 public function testSecureSetup ()
121124 {
@@ -129,7 +132,7 @@ public function testSecureSetup()
129132 primary ('id_pk ' , 'id ' ))
130133 );
131134
132- $ this ->assertEquals (1 , $ this -> object -> insert ('new_create_test2 ' ,
135+ $ this ->assertEquals (1 , insert ('new_create_test2 ' ,
133136 ['create_key ' => 'test 2 ' ])
134137 );
135138
@@ -142,6 +145,7 @@ public function testSecureSetup()
142145
143146 /**
144147 * @covers ezsql\ezQuery::create
148+ * @covers ezsql\Database\ez_pdo::connect
145149 */
146150 public function testCreate ()
147151 {
@@ -186,6 +190,7 @@ public function testInsert()
186190
187191 /**
188192 * @covers ezsql\ezQuery::update
193+ * @covers \update
189194 */
190195 public function testUpdate ()
191196 {
@@ -196,7 +201,7 @@ public function testUpdate()
196201 $ this ->object ->insert ('unit_test ' , array ('id ' =>'3 ' , 'test_key ' =>'test 3 ' ));
197202 $ unit_test ['test_key ' ] = 'testing ' ;
198203 $ where ="id = 1 " ;
199- $ this ->assertEquals ($ this -> object -> update ('unit_test ' , $ unit_test , $ where ), 1 );
204+ $ this ->assertEquals (update ('unit_test ' , $ unit_test , $ where ), 1 );
200205 $ this ->assertEquals ($ this ->object ->update ('unit_test ' , $ unit_test , eq ('test_key ' ,'test 3 ' , _AND ), eq ('id ' ,'3 ' )), 1 );
201206 $ this ->assertEquals ($ this ->object ->update ('unit_test ' , $ unit_test , "id = 4 " ), 0 );
202207 $ this ->assertEquals ($ this ->object ->update ('unit_test ' , $ unit_test , "test_key = test 2 and " , "id = 2 " ), 1 );
@@ -235,6 +240,7 @@ public function testDelete()
235240 * @covers ezsql\Database\ez_pdo::query
236241 * @covers ezsql\Database\ez_pdo::prepareValues
237242 * @covers ezsql\Database\ez_pdo::query_prepared
243+ * @covers \select
238244 */
239245 public function testSelecting ()
240246 {
@@ -253,7 +259,7 @@ public function testSelecting()
253259 }
254260
255261 $ where =array ('test_key ' ,'= ' ,'testing 2 ' );
256- $ result = $ this -> object -> selecting ('unit_test ' , 'id ' , $ where );
262+ $ result = select ('unit_test ' , 'id ' , $ where );
257263 foreach ($ result as $ row ) {
258264 $ this ->assertEquals (2 , $ row ->id );
259265 }
0 commit comments