Ejemplo n.º 1
0
 public function testInitializeAttributesAndNotUpdateAttribute()
 {
     $blueprint = new Blueprint('foo');
     $attributes = array('baz' => 'bar');
     $attribute = Mockery::mock('Skovachev\\Fakefactory\\Model\\Blueprint\\Attribute');
     $attribute->shouldReceive('getName')->once()->andReturn('foo');
     $blueprint->mergeAttributes(array($attribute));
     $blueprint->initializeAttributes($attributes);
 }