You are here

protected function I18nBookNavigationTestBase::enableI18nBookNavigationBlock in Book translation 7.2

Enable the i18n_book_navigation block.

1 call to I18nBookNavigationTestBase::enableI18nBookNavigationBlock()
I18nBookNavigationTestBase::setUp in tests/i18n_book_navigation.test
Sets up a Drupal site for running functional and integration tests.

File

tests/i18n_book_navigation.test, line 97
Unit tests for the Book translation module.

Class

I18nBookNavigationTestBase
@file Unit tests for the Book translation module.

Code

protected function enableI18nBookNavigationBlock() {
  $edit = array(
    "blocks[i18n_book_navigation_i18n_book_navigation][region]" => 'sidebar_first',
  );
  $this
    ->drupalPost('admin/structure/block', $edit, t("Save blocks"));
}