You are here

public function PermissionsTestCase::canNotChangeOwnerWhenFileNotOwned in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/PermissionsTestCase.php \org\bovigo\vfs\PermissionsTestCase::canNotChangeOwnerWhenFileNotOwned()

@test @group issue_53

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/PermissionsTestCase.php, line 66

Class

PermissionsTestCase
Test for permissions related functionality.

Namespace

org\bovigo\vfs

Code

public function canNotChangeOwnerWhenFileNotOwned() {
  $this->root
    ->getChild('test_directory')
    ->getChild('test.file')
    ->chown(vfsStream::OWNER_USER_1);
  $this
    ->assertFalse(@chown(vfsStream::url('root/test_directory/test.file'), vfsStream::OWNER_USER_2));
}