You are here

function FlickrApiTestCase::testflickrapi_is_nsid in Flickr API 7

Same name and namespace in other branches
  1. 6 tests/flickrapi.test \FlickrApiTestCase::testflickrapi_is_nsid()
  2. 7.2 tests/flickrapi.test \FlickrApiTestCase::testflickrapi_is_nsid()

File

tests/flickrapi.test, line 44
Unit Tests for flickrapi module http://drupal.org/node/265762

Class

FlickrApiTestCase
@file Unit Tests for flickrapi module http://drupal.org/node/265762

Code

function testflickrapi_is_nsid() {
  $this
    ->assertTrue(flickrapi_is_nsid('36251685@N00'));
  $this
    ->assertFalse(flickrapi_is_nsid(''));
  $this
    ->assertFalse(flickrapi_is_nsid('sdfjlskafjlksa'));
  $this
    ->assertEqual('36251685@N00', flickrapi_get_user_nsid('brenda@wallace.net.nz'));
}