You are here

public function PMPAPIWebTestCase::testPmpAPIFailToFetchDoc in Public Media Platform API Integration 7

Attempts to bogus doc from the PMP.

File

tests/pmpapi.test, line 67

Class

PMPAPIWebTestCase
Tests the functionality of the PMPAPI module.

Code

public function testPmpAPIFailToFetchDoc() {
  $doc = pmpapi_fetch('1234');
  $pull_error = !empty($doc->errors['query']);
  $this
    ->assertTrue($pull_error, 'pull error created when attempting to pull bogus doc.');
}