You are here

private function PatternsParserTestCase::basic_checks in Patterns 7

2 calls to PatternsParserTestCase::basic_checks()
PatternsParserTestCase::check_invalid in tests/parser/parser.test
PatternsParserTestCase::check_valid in tests/parser/parser.test

File

tests/parser/parser.test, line 40
SimpleTests for the Taxonomy component of Patterns.

Class

PatternsParserTestCase
@file SimpleTests for the Taxonomy component of Patterns.

Code

private function basic_checks($pattern) {
  $scan = patterns_scan_pattern($pattern);
  $this
    ->assertNotNull($scan, t('Pattern file loaded and scanned.'));
  $analysis = _patterns_scan_analyze_patternscan($scan);
  $this
    ->assertNotNull($analysis, t('Pattern-scan was analyzed successfully.'));
  return $analysis;
}