public function testSeePostOnFacebookWithAttachedPlace() { $this->checkPublishPermissions(); // precondition #1: I have facebook user $this->module->haveFacebookTestUserAccount(); // precondition #2: I have published the post with place attached $params = array('place' => '141971499276483'); $this->module->postToFacebookAsTestUser($params); // assert that post was published in the facebook and place is the same $this->module->seePostOnFacebookWithAttachedPlace($params['place']); }
public function testSeePostOnFacebookWithAttachedPlace() { if (!in_array('publish_actions', $this->config['test_user']['permissions']) || !in_array('user_posts', $this->config['test_user']['permissions'])) { $this->markTestSkipped("You need both publish_actions and user_posts permissions for this test"); } // precondition #1: I have facebook user $this->module->haveFacebookTestUserAccount(); // precondition #2: I have published the post with place attached $params = array('place' => '141971499276483'); $this->module->postToFacebookAsTestUser($params); // assert that post was published in the facebook and place is the same $this->module->seePostOnFacebookWithAttachedPlace($params['place']); }