You are here

function PatternsGeneralTestCase::testSpyc in Patterns 7

Same name and namespace in other branches
  1. 7.2 tests/general/general.test \PatternsGeneralTestCase::testSpyc()

File

tests/general/general.test, line 35
General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Class

PatternsGeneralTestCase
@file General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Code

function testSpyc() {

  // Login the site administrator.
  $this
    ->drupalLogin($this->adm_user);
  $this
    ->drupalGet('admin/reports/status');
  $this
    ->assertResponse(200);
  if ($this
    ->spycAvailable()) {
    $this
      ->assertRaw('Spyc library (YAML parser)</td><td class="status-value">0.5', t('Spyc 0.5 is installed and detected.'));
  }
  else {
    $this
      ->assertRaw('Spyc library (YAML parser)</td><td class="status-value">' . t('Missing'), t('Spyc 0.5 is not detected and the proper error message is shown.'));
  }
}