You are here

function ThemingExampleTestCase::testThemingExampleBasic in Examples for Developers 6

Check basic UI.

File

theming_example/theming_example.test, line 32
Test case for Testing the theming example module.

Class

ThemingExampleTestCase
@file Test case for Testing the theming example module.

Code

function testThemingExampleBasic() {
  $this
    ->drupalGet('');
  $this
    ->assertLink(t('Basic Theming Example'));
  $this
    ->clickLink(t('Basic Theming Example'));
  $this
    ->assertText(t('Basic examples of pages that are run through theme functions'));
  $this
    ->assertLink(t('Theming with a template and preprocess function'));
  $this
    ->clickLink(t('Theming with a template and preprocess function'));
  $this
    ->assertText(t('This is in a template file.'));
  $this
    ->assertText(t('This text was added in a preprocess function.'));
}