public function testGetUnreadCountMashableInboxForCurrentUser() { Mission::deleteAll(); Conversation::deleteAll(); $count = MashableUtil::GetUnreadCountMashableInboxForCurrentUser(); $this->assertEquals($count, 0); $this->makeANewUnreadMissionOwnedByCurrentUser(); $count = MashableUtil::GetUnreadCountMashableInboxForCurrentUser(); $this->assertEquals($count, 1); $this->makeANewUnreadConversationOwnedByCurrentUser(); $count = MashableUtil::GetUnreadCountMashableInboxForCurrentUser(); $this->assertEquals($count, 2); }