Ejemplo n.º 1
0
 public function testDeleteRecord()
 {
     $affected = Article::delete('title = ?', "Testing Testing");
     $this->assertGreaterThan(0, $affected);
 }
Ejemplo n.º 2
0
 public function testSelect()
 {
     $query = Article::createQuery()->select(array('title', 'body'));
     $this->assertEquals($query->toSql(), "SELECT title, body FROM rapide_models_articles rapide_models_articles");
 }