You are here

function DisqusAPITest::test_setKey in Drupal Most Popular 7

File

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

Class

DisqusAPITest

Code

function test_setKey() {
  $api = new DisqusAPI('a');
  $this
    ->assertEquals($api->key, 'a');
  $api
    ->setKey('b');
  $this
    ->assertEquals($api->key, 'b');
}