src/Codeception/Module/WPFilesystem.php
public function writeToThemeFile($file, $data)
    {
        $this->writeToFile(
            $this->config['themes'] . Utils::unleadslashit($file),
            $data
        );
    }
public function writeToThemeFile($file, $data)
    {
        $this->writeToFile(
            $this->config['themes'] . Utils::unleadslashit($file),
            $data
        );
    }
public function writeToThemeFile ( $ file , $ data ) { $ this -> writeToFile ( $ this -> config [ 'themes' ] . Utils :: unleadslashit ( $ file ) , $ data ) ; }
Writes a string to a file in a theme folder.

@example
``` php
$I->writeToThemeFile('my-theme/some-file.txt', 'foo');
```

@param  string $file The path to the file, relative to the themese root folder.
@param  string $data The data to write to the file.
Writes a string to a file in a theme folder .