public function testFindUserByMoodId() { $moodTable = new MoodListModel(); $map['content'] = 'my name is lilei'; $mood = $moodTable->where($map)->find(); $this->assertTrue(is_array($mood) && is_numeric($mood['id'])); $user = $moodTable->getUserByMoodId($mood['id']); $this->assertTrue($user['phone'] == '333333'); }