Example #1
0
 public function testAMissingPropertyWillReturnTheDefault()
 {
     $graphNode = new Collection(['foo' => 'bar']);
     $field = $graphNode->getField('baz', 'faz');
     $this->assertEquals('faz', $field);
     // @todo v6: Remove this assertion
     $property = $graphNode->getProperty('baz', 'faz');
     $this->assertEquals('faz', $property);
 }
 public function testAMissingPropertyWillReturnTheDefault()
 {
     $graphObject = new Collection(['foo' => 'bar']);
     $property = $graphObject->getProperty('baz', 'faz');
     $this->assertEquals('faz', $property);
 }