Codeception\Module\WPLoaderTest::it_should_set_the_template_and_stylesheet_options_when_passed_a_theme_config_parameter PHP Method

it_should_set_the_template_and_stylesheet_options_when_passed_a_theme_config_parameter() public method

    public function it_should_set_the_template_and_stylesheet_options_when_passed_a_theme_config_parameter()
    {
        $this->config['theme'] = 'foo';
        $sut = $this->make_instance();
        $sut->_setActiveTheme();
        global $wp_tests_options;
        $this->assertNotEmpty($wp_tests_options['template']);
        $this->assertEquals('foo', $wp_tests_options['template']);
        $this->assertNotEmpty($wp_tests_options['stylesheet']);
        $this->assertEquals('foo', $wp_tests_options['stylesheet']);
    }