Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/simpletest/simpletest.test
703 703
    $classes_all = simpletest_test_get_all();
704 704
    foreach (array(
705 705
      'Drupal\\simpletest\\Tests\\PSR0WebTest',
706
      'Drupal\\simpletest\\Tests\\PSR4WebTest',
706 707
      'Drupal\\psr_0_test\\Tests\\ExampleTest',
708
      'Drupal\\psr_4_test\\Tests\\ExampleTest',
707 709
    ) as $class) {
708 710
      $this->assert(!empty($classes_all['SimpleTest'][$class]), t('Class @class must be discovered by simpletest_test_get_all().', array('@class' => $class)));
709 711
    }
......
726 728
      // Don't expect PSR-0 tests to be discovered on older PHP versions.
727 729
      return;
728 730
    }
729
    // This one is provided by simpletest itself via PSR-0.
731
    // These are provided by simpletest itself via PSR-0 and PSR-4.
730 732
    $this->assertText('PSR0 web test');
733
    $this->assertText('PSR4 web test');
731 734
    $this->assertText('PSR0 example test: PSR-0 in disabled modules.');
735
    $this->assertText('PSR4 example test: PSR-4 in disabled modules.');
732 736
    $this->assertText('PSR0 example test: PSR-0 in nested subfolders.');
737
    $this->assertText('PSR4 example test: PSR-4 in nested subfolders.');
733 738

  
734 739
    // Test each test individually.
735 740
    foreach (array(
736 741
      'Drupal\\psr_0_test\\Tests\\ExampleTest',
737 742
      'Drupal\\psr_0_test\\Tests\\Nested\\NestedExampleTest',
743
      'Drupal\\psr_4_test\\Tests\\ExampleTest',
744
      'Drupal\\psr_4_test\\Tests\\Nested\\NestedExampleTest',
738 745
    ) as $class) {
739 746
      $this->drupalGet('admin/config/development/testing');
740 747
      $edit = array($class => TRUE);

Formats disponibles : Unified diff