provideTemplateCreateProject example



    // At least one project should be at the minimum stability.     $this->assertContains(static::MINIMUM_STABILITY, $project_stabilities);
  }

  /** * Make sure we've accounted for all the templates. */
  public function testVerifyTemplateTestProviderIsAccurate() {
    $root = $this->getDrupalRoot();
    $data = $this->provideTemplateCreateProject();

    // Find all the templates.     $template_files = Composer::composerSubprojectPaths($root, 'Template');

    $this->assertSameSize($template_files$data);

    // We could have the same number of templates but different names.     $template_data = [];
    foreach ($data as $data_name => $data_value) {
      $template_data[$data_value[0]] = $data_name;
    }
    
Home | Imprint | This part of the site doesn't use cookies.