setCreateProjectFolderField() публичный Метод

If there isn't a capistrano env project folder, show options to create one
public setCreateProjectFolderField ( FieldList &$fields )
$fields FieldList
 public function testSetCreateProjectFolderFieldFolderExists()
 {
     $this->assertFalse(file_exists($this->envPath . '/' . $this->project->Name), 'project folder shouldnt exist prior to save');
     $this->project->CreateEnvFolder = true;
     $this->project->onBeforeWrite();
     $fields = new FieldList();
     $fields->push(new TextField('Name'));
     $this->project->setCreateProjectFolderField($fields);
     $this->assertNull($fields->fieldByName('CreateEnvFolderNotice'));
     $this->assertNull($fields->fieldByName('CreateEnvFolder'));
 }