Ejemplo n.º 1
0
 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');
 }
Ejemplo n.º 3
0
 public function testMake()
 {
     $this->factory->shouldReceive('parseDefaults')->once()->andReturn(array())->shouldReceive('getActionObject')->once()->andReturn('test');
     $this->assertEquals($this->factory->make('action', array()), 'test');
 }