public function testMakeGetsColumnObject() { $this->factory->shouldReceive('getColumnObject')->once()->andReturn('test'); $this->assertEquals($this->factory->make(array()), 'test'); }
public function testMake() { $this->factory->shouldReceive('prepareOptions')->once()->andReturn('test')->shouldReceive('getFieldObject')->once()->with('test')->andReturn('foo'); $this->assertEquals($this->factory->make('foo', 'bar'), 'foo'); }
public function testMake() { $this->factory->shouldReceive('parseDefaults')->once()->andReturn(array())->shouldReceive('getActionObject')->once()->andReturn('test'); $this->assertEquals($this->factory->make('action', array()), 'test'); }