Example #1
0
 /**
  * Shim support for saving arrays directly.
  *
  * @return void
  */
 public function testSaveArray()
 {
     $array = ['title' => 'Foo', 'author_id' => 1];
     $res = $this->Posts->saveArray($array);
     $this->assertTrue((bool) $res);
     $this->assertNotEmpty($res->id);
 }