You are here

public function FppLocaleTest::testNoLanguageSelector in Fieldable Panels Panes (FPP) 7

Verify the language selector exists.

File

tests/fpp.locale.test, line 55
Confirm the language integration works correctly.

Class

FppLocaleTest
Confirm the language integration works correctly.

Code

public function testNoLanguageSelector() {
  module_disable(array(
    'locale',
  ));

  // Create a user with the admin permission.
  $this->adminUser = $this
    ->createAdminUser();
  $this
    ->drupalLogin($this->adminUser);

  // Load the fpp-add form.
  $this
    ->drupalGet('admin/structure/fieldable-panels-panes/' . $this->bundle . '/add');
  $this
    ->assertResponse(200);

  // Confirm the language selector is present on the page.
  $this
    ->assertNoFieldByName('language');
}