knowledge-8.x-1.x-dev/tests/src/Functional/Rest/KnowledgeXmlBasicAuthTest.php

tests/src/Functional/Rest/KnowledgeXmlBasicAuthTest.php
<?php

namespace Drupal\Tests\knowledge\Functional\Rest;

use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
use Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait;

/**
 * Test Basic Auth with XML response.
 *
 * @group rest
 */
class KnowledgeXmlBasicAuthTest extends KnowledgeResourceTestBase {

  use BasicAuthResourceTestTrait;
  use XmlEntityNormalizationQuirksTrait;

  /**
   * {@inheritdoc}
   */
  protected static $modules = ['basic_auth'];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
   */
  protected static $format = 'xml';

  /**
   * {@inheritdoc}
   */
  protected static $mimeType = 'text/xml; charset=UTF-8';

  /**
   * {@inheritdoc}
   */
  protected static $auth = 'basic_auth';

  /**
   * {@inheritdoc}
   */
  public function testPostDxWithoutCriticalBaseFields() {
    // Deserialization of the XML format is not supported.
    $this->markTestSkipped();
  }

  /**
   * {@inheritdoc}
   */
  public function testPostSkipKnowledgeApproval() {
    // Deserialization of the XML format is not supported.
    $this->markTestSkipped();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc