/**
  * A valid Facebook object but currently not supported by this library
  */
 public function testUnsupportedObjectType()
 {
     $this->setExpectedException('ChrisNoden\\Facebook\\Exception\\UnsupportedObjectException');
     $obj = ObjectFactory::create('review');
 }
Exemplo n.º 2
0
 public function testFactoryMethod()
 {
     $obj = ObjectFactory::create(GraphObjectType::PAYMENT);
     $this->assertInstanceOf('ChrisNoden\\Facebook\\Graph\\Object\\Payment', $obj);
 }