You are here

UITest.php in Text list formatter 8.2

File

lib/Drupal/textformatter/Tests/UITest.php
View source
<?php

/**
 * @file
 * Definition of Drupal\textformatter\Tests\UITest.
 */
namespace Drupal\textformatter\Tests;


/**
 * Test the UI settings form for list fields.
 */
class UITest extends TestBase {
  public static function getInfo() {
    return array(
      'name' => 'Test list UI',
      'description' => 'Tests the  settings in the UI for list formatters.',
      'group' => 'Textformatter',
    );
  }

  /**
   * Test the general output of the display formatter.
   */
  public function testUI() {
    $this
      ->drupalLogin($this->adminUser);
    $this
      ->drupalGet('admin/structure/types/manage/' . $this->contentType->type . '/display');
    $this
      ->assertResponse(200);
    $this
      ->assertText('Unordered HTML list (ul)');
    $this
      ->assertText('CSS Class: textformatter-list');
  }

}

Classes

Namesort descending Description
UITest Test the UI settings form for list fields.