Support » Plugins » WP Unit Tests: custom queries not working.

  • Hello,

    I’m using wp unit tests from develop.svn.wordpress.org to test my plugin.

    I’m creating some comments meta using ‘update_comment_meta‘ after creating random comments using the factory.

    However, when i run a custom sql query like this:
    print_r($wpdb->get_results("SELECT * FROM $wdpb->commentsmeta", ARRAY_A));

    I get an empty array for some reason.

    Any idea why is that?

  • The topic ‘WP Unit Tests: custom queries not working.’ is closed to new replies.