BlockJsonBasicAuthTest.php

Same filename in other branches
  1. 8.9.x core/modules/block/tests/src/Functional/Rest/BlockJsonBasicAuthTest.php
  2. 10 core/modules/block/tests/src/Functional/Rest/BlockJsonBasicAuthTest.php
  3. 11.x core/modules/block/tests/src/Functional/Rest/BlockJsonBasicAuthTest.php

Namespace

Drupal\Tests\block\Functional\Rest

File

core/modules/block/tests/src/Functional/Rest/BlockJsonBasicAuthTest.php

View source
<?php

namespace Drupal\Tests\block\Functional\Rest;

use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;

/**
 * @group rest
 */
class BlockJsonBasicAuthTest extends BlockResourceTestBase {
    use BasicAuthResourceTestTrait;
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'basic_auth',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected $defaultTheme = 'stark';
    
    /**
     * {@inheritdoc}
     */
    protected static $format = 'json';
    
    /**
     * {@inheritdoc}
     */
    protected static $mimeType = 'application/json';
    
    /**
     * {@inheritdoc}
     */
    protected static $auth = 'basic_auth';

}

Classes

Title Deprecated Summary
BlockJsonBasicAuthTest @group rest

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.