public function test_check_type_note() { if (!($list = Model_Timeline::get4type_key('note'))) { \Util_Develop::output_test_info(__FILE__, __LINE__); $this->markTestSkipped('No record for test.'); } foreach ($list as $obj) { // check for reference data. $this->assertEquals('note', $obj->foreign_table); $note = \Note\Model_Note::check_authority($obj->foreign_id); $this->assertNotEmpty($note); $member = \Model_Member::check_authority($obj->member_id); $this->assertNotEmpty($member); // check for member_id $this->assertEquals($note->member_id, $obj->member_id); // check for public_flag. $this->assertEquals($note->public_flag, $obj->public_flag); // 未使用カラムの値が null か $this->assertEmpty($obj->body); } }