コード例 #1
0
ファイル: QueryTest.php プロジェクト: skovachev/fakefactory
 public function testTriggerFactoryCreate()
 {
     $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('create')->once()->with($makeClass);
     $query->create($makeClass);
 }