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

it_should_deactivate_updates_when_bootstrapping() публичный Метод

    public function it_should_deactivate_updates_when_bootstrapping()
    {
        vfsStream::setup('wproot4', null, ['wp' => ['wp-load.php' => '<?php global $_flag; $_flag = true; ?>']]);
        $this->config['wpRootFolder'] = vfsStream::url('wproot4/wp');
        foreach (['update_core', 'update_plugins', 'update_themes'] as $key) {
            $this->wp->set_site_transient($key, Argument::type('stdClass'), Argument::any())->shouldBeCalled();
        }
        $sut = $this->make_instance();
        $sut->_initialize();
        $sut->bootstrapWp();
    }