public function SimpleLdapUserManagerTest::setUp in Simple LDAP 8
Sets up common service mocks for SimpleLdap unit tests.
Parameters
string $config_name:
Overrides SimpleLdapTestBase::setUp
File
- modules/
simple_ldap_user/ tests/ src/ Unit/ SimpleLdapUserManagerTest.php, line 52 - Contains \Drupal\Tests\simple_ldap\Unit\SimpleLdapUserManagerTest
Class
- SimpleLdapUserManagerTest
- @coversDefaultClass \Drupal\simple_ldap_user\SimpleLdapUserManager @group simple_ldap
Namespace
Drupal\Tests\simple_ldap\UnitCode
public function setUp() {
parent::setUp();
$this->server = $this
->getMockBuilder('\\Drupal\\simple_ldap\\SimpleLdapServer')
->disableOriginalConstructor()
->getMock();
$this->query_factory = $this
->getMockBuilder('\\Drupal\\Core\\Entity\\Query\\QueryFactory')
->disableOriginalConstructor()
->getMock();
$this->entity_manager = $this
->getMockBuilder('\\Drupal\\Core\\Entity\\EntityTypeManager')
->disableOriginalConstructor()
->getMock();
}