codeception/module-filesystem
Composer package to work when wp-browser is used with Codeception 4.0.wpRootFolder
required The absolute, or relative to the project root folder, path to the root WordPress installation folder. The WordPress installation root folder is the one that contains the wp-load.php
file.themes
- defaults to /wp-content/themes
; the path, relative to the the WordPress installaion root folder, to the themes folder.plugins
- defaults to /wp-content/plugins
; the path, relative to the WordPress installation root folder, to the plugins folder.mu-plugins
- defaults to wp-content/mu-plugins
; the path, relative to the WordPress installation root folder, to the must-use plugins folder.uploads
- defaults to /wp-content/uploads
; the path, relative to the WordPress installation root folder, to the uploads folder.string
$path - The path to the folder, relative to the mu-plugins root folder.string
$path - The folder path, relative to the root uploads folder, to change to.string
$path - The path to the theme folder, relative to themes root folder.string
$path - The path, relative to the site uploads folder.string
$dir - The path to the directory, relative to the mu-plugins root folder.string
$dir - The path to the folder, relative to the plugins root folder.string
$dir - The path to the folder, relative to the themese root folder.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$dir - The path to the directory to delete, relative to the uploads folder.string/int/[\DateTime](http://php.net/manual/en/class.datetime.php)
$date - The date of the uploads to delete, will default to now
.string
$src - The path to the source file to copy.string
$pluginDst - The path to the destination folder, relative to the mu-plugins root folder.string
$src - The path to the source directory to copy.string
$pluginDst - The destination path, relative to the plugins root folder.string
$src - The path to the source file.string
$themeDst - The path to the destination folder, relative to the themes root folder.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$src - The path to the source file, relative to the current uploads folder.string
$dst - The path to the destination file, relative to the current uploads folder.string/int/[\DateTime](http://php.net/manual/en/class.datetime.php)
$date - The date of the uploads to delete, will default to now
.string
$file - The path to the file, relative to the mu-plugins root folder.string
$file - The folder path, relative to the plugins root folder.string
$file - The path to the file to delete, relative to the themes root folder.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$dir - The path to the directory to delete, relative to the uploads folder.string/int/[\DateTime](http://php.net/manual/en/class.datetime.php)
$date - The date of the uploads to delete, will default to now
.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$file - The file path, relative to the uploads folder or the current folder.string/int
$date - A string compatible with strtotime
or a Unix timestamp.string
$file - The path to the file, relative to the mu-plugins root folder.string
$contents - The contents to check the file for.string
$file - The path to the file, relative to the plugins root folder.string
$contents - The contents to check the file for.string
$file - The path to the file, relative to the themes root folder.string
$contents - The contents to check the file for.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$file - The file path, relative to the uploads folder or the current folder.string
$contents - The not expected file contents or part of them.string/int
$date - A string compatible with strtotime
or a Unix timestamp.string
$file - The path to the file, relative to the mu-plugins folder.string
$file - The path to the file, relative to the plugins root folder.string
$file - The path to the file, relative to the themes root folder.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$file - The file path, relative to the uploads folder or the current folder.string/int
$date - A string compatible with strtotime
or a Unix timestamp.int
$blogId - The blog ID to get the path for.string
$file - The path, relatitve to the blog uploads folder, to thenull/string/[\DateTime](http://php.net/manual/en/class.datetime.php)/[\DateTime](http://php.net/manual/en/class.datetime.php)Immutable
$date - The date that should be used to build the uploads$file
and $date
will return the uploads folder path.string
$file - The file path, relative to the uploads folder.mixed
$date - A string compatible with strtotime
, a Unix timestamp or a Date object.string
$filename - The path to the file to create, relative to the plugins root folder.string
$code - The content of the plugin file with or without the opening PHP tag.string
$path - The path to the file to create, relative to the plugins folder.string
$code - The content of the plugin file with or without the opening PHP tag.string
$folder - The path to the theme to create, relative to the themes root folder.string
$indexFileCode - The content of the theme index.php file with or without the opening PHP tag.string
$functionsFileCode - The content of the theme functions.php file with or without the opening PHP tag.string
$path - The path, relative to the WordPress installation uploads folder, of the folderstrtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$filename - The path to the file, relative to the current uploads folder.string/int/[\DateTime](http://php.net/manual/en/class.datetime.php)
$date - The date of the uploads to delete, will default to now
.string
$file - The path the file, relative to the mu-plugins root folder.string
$contents - The contents to check the file for.string
$file - The path to the file, relative to the plugins root folder.string
$contents - The contents to check the file for.string
$file - The path to the file, relative to the themes root folder.string
$contents - The contents to check the file for.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$file - The file path, relative to the uploads folder or the current folder.string
$contents - The expected file contents or part of them.string/int
$date - A string compatible with strtotime
or a Unix timestamp.string
$file - The path to the file, relative to the mu-plugins folder.string
$file - The path to the file, relative to thep plugins root folder.string
$file - The path to the file, relative to the themes root folder.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$filename - The file path, relative to the uploads folder or the current folder.string/int
$date - A string compatible with strtotime
or a Unix timestamp.string
$file - The path to the destination file, relative to the mu-plugins root folder.string
$data - The data to write to the file.string
$file - The path to the file, relative to the plugins root folder.string
$data - The data to write in the file.string
$file - The path to the file, relative to the themese root folder.string
$data - The data to write to the file.strtotime
or a Unix timestamp that will be used to build the Y/m
uploads subfolder path.string
$filename - The path to the destination file, relative to the current uploads folder.string
$data - The data to write to the file.string/int/[\DateTime](http://php.net/manual/en/class.datetime.php)
$date - The date of the uploads to delete, will default to now
.