def METHOD_NAME(self):
    self.create_team(members=[self.user])
    RecentSearch.objects.create(
        organization=self.organization,
        user_id=self.create_user("other@user.com").id,
        type=SearchType.ISSUE.value,
        query="some test",
    )
    RecentSearch.objects.create(
        organization=self.create_organization(),
        user_id=self.user.id,
        type=SearchType.ISSUE.value,
        query="some test",
    )
    event_recent_search = RecentSearch.objects.create(
        organization=self.organization,
        user_id=self.user.id,
        type=SearchType.EVENT.value,
        query="some test",
        last_seen=timezone.now(),
        date_added=timezone.now(),
    )
    session_recent_search = RecentSearch.objects.create(
        organization=self.organization,
        user_id=self.user.id,
        type=SearchType.SESSION.value,
        query="some test",
        last_seen=timezone.now(),
        date_added=timezone.now(),
    )
    issue_recent_searches = [
        RecentSearch.objects.create(
            organization=self.organization,
            user_id=self.user.id,
            type=SearchType.ISSUE.value,
            query="some test",
            last_seen=timezone.now(),
            date_added=timezone.now(),
        ),
        RecentSearch.objects.create(
            organization=self.organization,
            user_id=self.user.id,
            type=SearchType.ISSUE.value,
            query="older query",
            last_seen=timezone.now() - timedelta(minutes=30),
            date_added=timezone.now() - timedelta(minutes=30),
        ),
        RecentSearch.objects.create(
            organization=self.organization,
            user_id=self.user.id,
            type=SearchType.ISSUE.value,
            query="oldest query",
            last_seen=timezone.now() - timedelta(hours=1),
            date_added=timezone.now() - timedelta(hours=1),
        ),
    ]
    self.check_results(issue_recent_searches, search_type=SearchType.ISSUE)
    self.check_results([event_recent_search], search_type=SearchType.EVENT)
    self.check_results([session_recent_search], search_type=SearchType.SESSION)