Exemplo n.º 1
0
 public function testSeePostOnFacebookWithAttachedPlace()
 {
     // precondition #1: I have facebook user
     $this->module->haveFacebookTestUserAccount();
     // precondition #2: I have published the post with place attached
     $params = array('place' => '141971499276483');
     $this->facebook->api('me/feed', 'POST', $params);
     // assert that post was published in the facebook and place is the same
     $this->module->seePostOnFacebookWithAttachedPlace($params['place']);
 }
Exemplo n.º 2
0
 /**
  * Returns the test user first name.
  *
  * @return string
  */
 public function grabFacebookTestUserFirstName()
 {
     if (!array_key_exists('profile', $this->testUser)) {
         $this->testUser['profile'] = $this->facebook->api('/me');
     }
     return $this->testUser['profile']['first_name'];
 }