private static function set_note() { $note = \Note\Model_Note::forge(); $values = array('title' => 'test', 'body' => 'This is test.', 'public_flag' => FBD_PUBLIC_FLAG_ALL); $note->save_with_relations(self::$member_id, $values); self::$note_id = $note->id; return $note; }
public function update_public_flag_with_relations_provider() { $data = array(); $note = \Note\Model_Note::forge(); $values = array('title' => 'test', 'body' => 'This is test.', 'public_flag' => FBD_PUBLIC_FLAG_ALL); $note->save_with_relations(1, $values); $data[] = array(FBD_PUBLIC_FLAG_MEMBER); // 変更なし $data[] = array(FBD_PUBLIC_FLAG_MEMBER); return $data; }