/** * 最終登録IDを取得する */ public function testGetInsertID() { $this->Page->save(array('Page' => array('name' => 'hoge', 'title' => 'hoge', 'url' => '/hoge', 'description' => 'hoge', 'status' => 1, 'page_category_id' => null))); $result = $this->Page->getInsertID(); $this->assertEquals(16, $result, '正しく最終登録IDを取得できません'); }