Example #1
0
 public function testTriggerFactoryMake()
 {
     $this->config->shouldReceive('get')->once()->with('fakefactory::generate_id')->andReturn(false);
     $query = new Query($this->factory, $this->config);
     $makeClass = 'foo';
     $this->factory->shouldReceive('setBuildOptions')->once();
     $this->factory->shouldReceive('make')->once()->with($makeClass);
     $query->make($makeClass);
 }