public function FppLocaleTest::testLanguageSelector in Fieldable Panels Panes (FPP) 7
Verify the language selector exists.
File
- tests/
fpp.locale.test, line 38 - Confirm the language integration works correctly.
Class
- FppLocaleTest
- Confirm the language integration works correctly.
Code
public function testLanguageSelector() {
// 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
->assertFieldByName('language');
}