You are here

public function FileSystemTest::testChmodUnsuccessful in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::testChmodUnsuccessful()
  2. 10 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::testChmodUnsuccessful()

@covers ::chmod

File

core/tests/Drupal/Tests/Core/File/FileSystemTest.php, line 81

Class

FileSystemTest
@coversDefaultClass \Drupal\Core\File\FileSystem

Namespace

Drupal\Tests\Core\File

Code

public function testChmodUnsuccessful() {
  vfsStream::setup('dir');
  $this->logger
    ->expects($this
    ->once())
    ->method('error');
  $this
    ->assertFalse($this->fileSystem
    ->chmod('vfs://dir/test.txt'));
}