You are here

QueryPathHtmlParserTest.php in Feeds extensible parsers 8

File

tests/src/Functional/Feeds/Parser/QueryPathHtmlParserTest.php
View source
<?php

namespace Drupal\Tests\feeds_ex\Functional\Feeds\Parser;


/**
 * @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\QueryPathHtmlParser
 * @group feeds_ex
 */
class QueryPathHtmlParserTest extends ParserTestBase {
  use ContextTestTrait;

  /**
   * The ID of the parser to test.
   *
   * @var string
   */
  protected $parserId = 'querypathhtml';

  /**
   * {@inheritdoc}
   */
  public function dataProviderValidContext() {
    return [
      [
        '.post',
      ],
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function dataProviderInvalidContext() {
    return [
      [
        '!! ',
        'CSS selector is not well formed.',
      ],
    ];
  }

}

Classes

Namesort descending Description
QueryPathHtmlParserTest @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\QueryPathHtmlParser @group feeds_ex