UITest.php in Text list formatter 8.2
Definition of Drupal\textformatter\Tests\UITest.
Namespace
Drupal\textformatter\TestsFile
lib/Drupal/textformatter/Tests/UITest.phpView 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');
}
}