ConfigDependencies example

/** * {@inheritdoc} */
  protected static $modules = ['rest', 'entity_test', 'serialization'];

  /** * @covers ::calculateDependencies * * @dataProvider providerBasicDependencies */
  public function testCalculateDependencies(array $configuration) {
    $config_dependencies = new ConfigDependencies(['json' => 'serialization']['basic_auth' => 'basic_auth']);

    $rest_config = RestResourceConfig::create($configuration);

    $result = $config_dependencies->calculateDependencies($rest_config);
    $this->assertEquals([
      'module' => ['basic_auth', 'serialization'],
    ]$result);
  }

  /** * @covers ::onDependencyRemoval * @covers ::onDependencyRemovalForMethodGranularity * @covers ::onDependencyRemovalForResourceGranularity * * @dataProvider providerBasicDependencies */
Home | Imprint | This part of the site doesn't use cookies.