<commit_before><?php
class WP_Test_UC_DailyDigest_Widget extends WP_UnitTestCase {

    function setUp() {
        global $uc_dailydigest_widget;

        parent::setUp();

        include_once( plugin_dir_path( dirname( __FILE__ ) ) . '/uconn-daily-digest-widget.php' );

        // Allow for a plugin to insert a different class to handle requests.
        $uc_dailydigest_widget_class = apply_filters('uc_dailydigest_widget_class', 'UConn_Daily_Digest_Widget');
        $uc_dailydigest_widget = new $uc_dailydigest_widget_class;
        }

    function test_tests() {
        $this->assertTrue( true );
    }

    function test_is_plugin_active() {
        $this->assertTrue( is_plugin_active( 'uc-dailydigest-widget/uconn-daily-digest-widget.php' ) );
    }

    function test_init_hook_was_added() {
        global $uc_dailydigest_widget;
        $this->assertGreaterThan( 0, has_filter( 'init', array( $uc_dailydigest_widget, 'widget_textdomain') ) );
    }

    function test_admin_styles_enqueued() {
        global $uc_dailydigest_widget;
        $this->assertTrue( wp_style_is(
            'register_admin_styles'
        , 'enqueued' ) );
    }

    function test_widget_styles_enqueued() {
        global $uc_dailydigest_widget;
        $this->assertTrue( wp_style_is(
            'register_widget_styles'
        , 'enqueued' ) );
    }

    function test_get_widget_slug() {<commit_msg>Fixed tests<commit_after><?php
class WP_Test_UC_DailyDigest_Widget extends WP_UnitTestCase {

    function setUp() {
        global $uc_dailydigest_widget;

        parent::setUp();

        include_once( plugin_dir_path( dirname( __FILE__ ) ) . '/uconn-daily-digest-widget.php' );

        // Allow for a plugin to insert a different class to handle requests.
        $uc_dailydigest_widget_class = apply_filters('uc_dailydigest_widget_class', 'UConn_Daily_Digest_Widget');
        $uc_dailydigest_widget = new $uc_dailydigest_widget_class;
        }

    function test_tests() {
        $this->assertTrue( true );
    }

    function test_is_plugin_active() {
        $this->assertTrue( is_plugin_active( 'uc-dailydigest-widget/uconn-daily-digest-widget.php' ) );
    }

    function test_init_hook_was_added() {
        global $uc_dailydigest_widget;
        $this->assertGreaterThan( 0, has_filter( 'init', array( $uc_dailydigest_widget, 'widget_textdomain') ) );
    }

    function test_admin_styles_enqueued() {
        global $uc_dailydigest_widget;
        var_dump(wp_style_is(
            'register_admin_styles'
        , 'enqueued' ));
        $this->assertTrue( wp_style_is(
            'register_admin_styles'
        , 'enqueued' ) );
    }

    function test_widget_styles_enqueued() {
        global $uc_dailydigest_widget;
        $this->assertTrue( wp_style_is(
            'register_widget_styles'
        , 'enqueued' ) );
    }

    function test_get_widget_slug() {
{'fraction_non_alphanumeric': 0.10384215991692627, 'fraction_numerical': 0.0006922810661128419, 'mean_word_length': 3.0306834030683403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '112903', 'n_tokens_mistral': 985, 'n_tokens_neox': 907, 'n_words': 146}