Codeception\Module\WPBootstrapperTest::_before PHP Метод

_before() защищенный Метод

protected _before ( )
    protected function _before()
    {
        global $_flag;
        $_flag = false;
        $this->module_container = $this->prophesize(ModuleContainer::class);
        vfsStream::setup('wproot', null, ['wp' => ['wp-load.php' => '// load WordPress']]);
        $this->config = ['wpRootFolder' => vfsStream::url('wproot')];
        $this->restorer = $this->prophesize(Restorer::class);
        $this->wp = $this->prophesize(WP::class);
        $this->wp->set_site_transient(Argument::type('string'), Argument::any(), Argument::any())->willReturn(true);
    }