HM\BackUpWordPress\Common_File_Backup_Engine_Tests::test_backup_with_hidden_file PHP Method

test_backup_with_hidden_file() public method

Test an unreadable file with the shell commands
    public function test_backup_with_hidden_file()
    {
        $this->hidden = $this->test_data . '/.hidden';
        if (!file_put_contents($this->hidden, 'test')) {
            $this->markTestSkipped('Couldn\'t create hidden file to test with');
        }
        $this->assertFileExists($this->hidden);
        $this->backup->backup();
        $this->assertFileExists($this->backup->get_backup_filepath());
        $this->assertArchiveContains($this->backup->get_backup_filepath(), array(basename($this->hidden)));
        $this->assertArchiveFileCount($this->backup->get_backup_filepath(), 4);
    }