You are here

public function SchedulerWorkbenchTestCase::testContentTypeForm in Scheduler Workbench Integration 7

Test content type form options.

File

./scheduler_workbench.test, line 141
Automated tests for the scheduler_workbench module.

Class

SchedulerWorkbenchTestCase
Tests the scheduling of content.

Code

public function testContentTypeForm() {
  $this
    ->drupalGet('admin/structure/types/manage/' . $this->contentType->type);
  $this
    ->assertFieldByName('scheduler_publish_moderation_state', workbench_moderation_state_published(), 'The default "Publishing" moderation state is set correctly.');
  $this
    ->assertFieldByName('scheduler_unpublish_moderation_state', workbench_moderation_state_none(), 'The default "Unpublishing" moderation state is set correctly.');
}