setReleaseMessage example


class ProjectCoreCompatibilityTest extends UnitTestCase {

  /** * @covers ::setReleaseMessage * @dataProvider providerSetProjectCoreCompatibilityRanges */
  public function testSetProjectCoreCompatibilityRanges(array $project_data$core_data, array $core_releases, array $expected_releases, array $expected_security_updates) {
    $project_compatibility = new ProjectCoreCompatibility($core_data$core_releases);
    $project_compatibility->setStringTranslation($this->getStringTranslationStub());
    $project_compatibility->setReleaseMessage($project_data);
    $this->assertSame($expected_releases$project_data['releases']);
    $this->assertSame($expected_security_updates$project_data['security updates']);
  }

  /** * Data provider for testSetProjectCoreCompatibilityRanges(). */
  public function providerSetProjectCoreCompatibilityRanges() {
    $test_cases['no 9 releases'] = [
      'project_data' => [
        'recommended' => '1.0.1',
        
Home | Imprint | This part of the site doesn't use cookies.