Unverified Commit 5be50483 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3174200 by mondrake, longwave: Use PHPUnit-bridge polyfills for forward compatibility layer

parent 1952f640
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ public function testStyle() {

    // Confirm the style directory has been removed.
    $directory = 'public://styles/' . $style_name;
    $this->assertDirectoryNotExists($directory);
    $this->assertDirectoryDoesNotExist($directory);

    $this->assertNull(ImageStyle::load($style_name), new FormattableMarkup('Image style %style successfully deleted.', ['%style' => $style->label()]));

+1 −1
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_s
    // directories in the file system.
    $directory = $scheme . '://styles/' . $this->style->id() . '/' . $scheme . '/' . $this->randomMachineName();
    $this->drupalGet(file_create_url($directory . '/' . $this->randomString()));
    $this->assertDirectoryNotExists($directory);
    $this->assertDirectoryDoesNotExist($directory);
  }

}
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ public function testClearDiskCache() {
    ];
    // Check that update directories does not exists.
    foreach ($directories as $directory) {
      $this->assertDirectoryNotExists($directory);
      $this->assertDirectoryDoesNotExist($directory);
    }

    // Method must not fail if update directories do not exists.
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ protected function setUpSite() {
   */
  public function testError() {
    $this->assertSession()->pageTextContains("An automated attempt to create the directory {$this->configDirectory}/sync failed, possibly due to a permissions problem.");
    $this->assertDirectoryNotExists($this->configDirectory . '/sync');
    $this->assertDirectoryDoesNotExist($this->configDirectory . '/sync');
  }

}
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public function testFileCheckDirectoryHandling() {
    // A directory to operate on.
    $default_scheme = 'public';
    $directory = $default_scheme . '://' . $this->randomMachineName() . '/' . $this->randomMachineName();
    $this->assertDirectoryNotExists($directory);
    $this->assertDirectoryDoesNotExist($directory);

    // Non-existent directory.
    /** @var \Drupal\Core\File\FileSystemInterface $file_system */
Loading