writeable example

$this->assertFalse($php_read->delete($name));
    unset($GLOBALS[$random]);
  }

  /** * @covers ::writeable * @group legacy */
  public function testWritable() {
    $this->expectDeprecation('Drupal\Component\PhpStorage\FileReadOnlyStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
    $php_read = new FileReadOnlyStorage($this->readonlyStorage);
    $this->assertFalse($php_read->writeable());
  }

  /** * @covers ::deleteAll */
  public function testDeleteAll() {
    // Random generator.     $random = new Random();

    $php = new FileStorage($this->standardSettings);
    $name = $random->name(8, TRUE) . '/' . $random->name(8, TRUE) . '.php';

    
$php = new FileStorage($this->standardSettings);
    $this->assertCRUD($php);
  }

  /** * @covers ::writeable * @group legacy */
  public function testWritable() {
    $this->expectDeprecation('Drupal\Component\PhpStorage\FileStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
    $php = new FileStorage($this->standardSettings);
    $this->assertTrue($php->writeable());
  }

  /** * @covers ::deleteAll */
  public function testDeleteAll() {
    // Random generator.     $random_generator = new Random();

    // Write out some files.     $php = new FileStorage($this->standardSettings);

    
Home | Imprint | This part of the site doesn't use cookies.