Example #1
0
 public function testTwitterProfile()
 {
     $user = new User();
     $user->twitter_id = 100;
     $profile = $user->twitterProfile();
     $this->assertInstanceOf('app\\twitter\\models\\TwitterProfile', $profile);
     $this->assertEquals(100, $profile->id());
 }