SVRUnit
  • Welcome
  • Installation
    • Installation
    • First Run
  • Use Cases
    • Verify Server
    • Verify Server for Project
    • Post Deployment Tests
    • Unit Test Docker Image
    • Testing your frameworks
  • Configuration
    • Configuration
  • Commands
    • list:suites
    • list:groups
    • test
  • Assertions
    • Command
    • Directory Exists
    • File Exists
    • File Content
    • File Permissions
    • PHP INI
    • PHP Modules
  • Reports
    • HTML Report
    • JUnit Report
  • Resources
    • svrunit.com
    • Github
Powered by GitBook
On this page
  • Expecting
  • Not Expecting

Was this helpful?

  1. Assertions

File Permissions

This assertion type verifies the permissions of a file. It helps you to quickly check expected permission sets.

Expecting

This type checks if the file has 775 permissions.

file_permission:
    - name: "My File has 775"
      file: "/var/www/my-file.txt"
      expected: "775"

Not Expecting

Use this type to verify that the file does not have 775 permissions.

file_permission:
    - name: "My File has not 775"
      file: "/var/www/my-file.txt"
      not_expected: "775"
PreviousFile ContentNextPHP INI

Last updated 2 years ago

Was this helpful?