$this->assertTrue(in_array($expected_cache_context,$cache_contexts),"'".$expected_cache_context."' is present in the X-Drupal-Cache-Contexts header.");
}
/**
* Asserts that a cache context was not present in the last response.
$this->assertFalse(in_array($not_expected_cache_context,$cache_contexts),"'".$not_expected_cache_context."' is not present in the X-Drupal-Cache-Contexts header.");
}
/**
* Asserts whether an expected cache tag was present in the last response.
$this->assertTrue(in_array($expected_cache_context,$cache_contexts),"'".$expected_cache_context."' is present in the X-Drupal-Cache-Contexts header.");
}
/**
* Asserts that a cache context was not present in the last response.
$this->assertFalse(in_array($not_expected_cache_context,$cache_contexts),"'".$not_expected_cache_context."' is not present in the X-Drupal-Cache-Contexts header.");
}
/**
* Asserts page cache miss, then hit for the given URL; checks cache headers.