You are here

function DisqusAPITest::test_setFormat in Drupal Most Popular 7

File

modules/mostpopular_disqus/disqusapi/tests/disqusapi.php, line 20

Class

DisqusAPITest

Code

function test_setFormat() {
  $api = new DisqusAPI();
  $this
    ->assertEquals($api->format, 'json');
  $api
    ->setFormat('jsonp');
  $this
    ->assertEquals($api->format, 'jsonp');
}