Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VFS documentation #338

Open
franck-paul opened this issue Mar 24, 2023 · 0 comments
Open

VFS documentation #338

franck-paul opened this issue Mar 24, 2023 · 0 comments

Comments

@franck-paul
Copy link

I tried this:

use atoum\atoum\mock\stream;
…
    public function testDirIsDeletable()
    {
        $dirname   = 'testDirIsDeletable';
        $directory = stream::get($dirname);
        $directory->mkdir($dirname, self::READ_WRITE_EXECUTE_USER_GROUP);

        $this
            ->boolean(\Dotclear\Helper\File\Files::isDeletable(self::ATOUM_STREAM . $dirname))
            ->isTrue()
        ;
    }
…

Where self::READ_WRITE_EXECUTE_USER_GROUP = 0770, self::ATOUM_STREAM = 'atoum:\\\\', and \Dotclear\Helper\File\Files::isDeletable() is a method which return true or false (directory deletable or not)

It seems that this test is not correctly coded (it always return false), could you explain why? Do I miss something in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant