You are here

public function XmlParserTraitTest::testRemoveDefaultNamespaces in Feeds 8.3

Strip some namespaces out of XML.

@dataProvider namespaceProvider

File

tests/src/Unit/Component/XmlParserTraitTest.php, line 44

Class

XmlParserTraitTest
@coversDefaultClass \Drupal\feeds\Component\XmlParserTrait @group feeds

Namespace

Drupal\Tests\feeds\Unit\Component

Code

public function testRemoveDefaultNamespaces($in, $out) {
  $trait = $this
    ->getMockForTrait('Drupal\\feeds\\Component\\XmlParserTrait');
  $result = $this
    ->callProtectedMethod($trait, 'removeDefaultNamespaces', [
    $in,
  ]);
  $this
    ->assertSame($out, $result);
}