Codeception\Module\WPLoaderTest::_before PHP Method

_before() protected method

protected _before ( )
    protected function _before()
    {
        $root = vfsStream::setup();
        $wpFolder = vfsStream::newDirectory('wp');
        $wpLoadFile = vfsStream::newFile('wp-load.php', 0777);
        $wpFolder->addChild($wpLoadFile);
        $root->addChild($wpFolder);
        $this->moduleContainer = $this->prophesize(ModuleContainer::class);
        $this->config = ['wpRootFolder' => $root->url() . '/wp', 'dbName' => 'someDb', 'dbHost' => 'localhost', 'dbUser' => 'somePass', 'dbPassword' => 'somePass'];
        $this->wp = $this->prophesize(WP::class);
    }