assertContains(ADPLUGG_OVERRIDE_ACCESS_CODE, $outbound); } else { $this->assertEquals('', $outbound); } } /** * Test that the adplugg_add_sdk function outputs the sdk when the * access_code is set. */ public function test_adplugg_add_sdk_outputs_sdk() { //Set the access_code $options = get_option(ADPLUGG_OPTIONS_NAME, array()); $options['access_code'] = 'A0000'; update_option(ADPLUGG_OPTIONS_NAME, $options); //Output the SDK ob_start(); adplugg_add_sdk(); $outbound = ob_get_contents(); ob_end_clean(); //Assert that the SDK is output. $this->assertContains('assertContains('qunit', $outbound); } }