Source of file UserManagementConfigExtensionTest.php
Size: 1,836 Bytes - Last Modified: 2021-12-24T06:40:49+00:00
/var/www/docs.ssmods.com/process/src/tests/Extension/UserManagementConfigExtensionTest.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | <?php namespace UserManagement\Tests; use SilverStripe\Dev\FunctionalTest; use SilverStripe\SiteConfig\SiteConfig; /** * Class UserManagementConfigExtensionTest * * @package user-management */ class UserManagementConfigExtensionTest extends FunctionalTest { private $siteconfig; protected function setUp() { parent::setUp(); $this->siteconfig = SiteConfig::create(); } /** * Login url test */ public function testgetLoginUrlID() { $loginurlid = $this->siteconfig->getLoginUrlID(); $this->assertNotNull($loginurlid, "login url exists"); } /** * Login call back url test */ public function testgetLoginCallBackUrlID() { $logincallbackurlid = $this->siteconfig->getLoginCallBackUrlID(); $this->assertNotNull($logincallbackurlid, "login call back url exists"); } /** * Lost password url test */ public function testgetLostPasswordUrlID() { $lostpasswordurlid = $this->siteconfig->getLostPasswordUrlID(); $this->assertNotNull($lostpasswordurlid, "lost password url exists"); } /** * Customer group id test */ public function testgetCustomerGroupID() { $customergroupid = $this->siteconfig->getCustomerGroupID(); $this->assertNull($customergroupid, "lost password url exists"); } /** * Export fields test */ public function testgetExportFieldNames() { $exportfields = $this->siteconfig->getExportFieldNames(); $this->assertNotEmpty($exportfields, "export fields should be returned"); } /** * CMS fields test **/ public function testgetCMSFields() { //singleton(SiteConfig::class)->getCMSFields(); } } |