public function AllowedLanguagesUserFieldTest::testAllowedLanguagesFieldExists in Allowed Languages 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/AllowedLanguagesUserFieldTest.php \Drupal\Tests\allowed_languages\Kernel\AllowedLanguagesUserFieldTest::testAllowedLanguagesFieldExists()
Test that the field has been applied to the user entity.
File
- tests/
src/ Kernel/ AllowedLanguagesUserFieldTest.php, line 15
Class
- AllowedLanguagesUserFieldTest
- Tests for the allowed languages field added fo the user entity.
Namespace
Drupal\Tests\allowed_languages\KernelCode
public function testAllowedLanguagesFieldExists() {
$this
->assertTrue($this->user
->hasField('allowed_languages'));
}