mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 21:02:09 +02:00
Form handler code cleanup/optimization. Added getSupportedProviders() caching to reduce execution time.
This commit is contained in:
@@ -322,12 +322,14 @@ class e_formTest extends \Codeception\Test\Unit
|
||||
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
/*
|
||||
|
||||
public function testUserlist()
|
||||
{
|
||||
$list = $this->_frm->userlist('name',null);
|
||||
$this->assertStringContainsString("<option value='1'>e107</option>",$list);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
public function testUserpicker()
|
||||
{
|
||||
|
||||
|
@@ -31,6 +31,7 @@ class e_user_providerTest extends \Codeception\Test\Unit
|
||||
public function testGetSupportedProviders()
|
||||
{
|
||||
$result = e_user_provider::getSupportedProviders();
|
||||
|
||||
$this->assertIsArray($result);
|
||||
$this->assertContains("Facebook", $result);
|
||||
$this->assertContains("Twitter", $result);
|
||||
|
Reference in New Issue
Block a user