You are here

function CDNOriginPullFarFutureTestCase::assertUFIMethod in CDN 7.2

Assert a UFI method. Must be run after a UFI mapping is asserted (and set) by assertUFIMapping().

Parameters

$path: The path to get a UFI for.

$ufi_method_reference: The reference the resulting UFI method will be compared to.

1 call to CDNOriginPullFarFutureTestCase::assertUFIMethod()
CDNOriginPullFarFutureTestCase::testUFIMapping in tests/cdn.test

File

tests/cdn.test, line 389
Test CDN.

Class

CDNOriginPullFarFutureTestCase

Code

function assertUFIMethod($path, $ufi_method_reference) {
  $ufi_mapping = _cdn_basic_farfuture_parse_raw_mapping(variable_get(CDN_BASIC_FARFUTURE_UNIQUE_IDENTIFIER_MAPPING_VARIABLE, CDN_BASIC_FARFUTURE_UNIQUE_IDENTIFIER_MAPPING_DEFAULT));
  $this
    ->assertEqual($ufi_method_reference, cdn_basic_farfuture_get_ufi_method($path, $ufi_mapping), 'Correct UFI method applied.');
}