Integration tests: rename method to 'createApplication'

This commit is contained in:
Taras Machyshyn
2016-09-29 17:21:05 +03:00
parent a61553d08b
commit 70d3bf9fff
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ abstract class BaseTestCase extends \PHPUnit_Framework_TestCase
*/
protected $password = null;
protected function loadApplication($userName = null, $password = null)
protected function createApplication($userName = null, $password = null)
{
if (isset($userName) && isset($password)) {
return $this->espoTester->getApplication(true, $userName, $password);
@@ -102,7 +102,7 @@ abstract class BaseTestCase extends \PHPUnit_Framework_TestCase
$this->espoTester = new Tester($params);
$this->espoTester->initialize();
$this->espoApplication = $this->loadApplication($this->userName, $this->password);
$this->espoApplication = $this->createApplication($this->userName, $this->password);
}
protected function tearDown()
+1 -1
View File
@@ -45,7 +45,7 @@ class LoginTest extends \tests\integration\Core\BaseTestCase
public function testWrongCredentials()
{
$application = $this->loadApplication('admin', 'wrong-password');
$application = $this->createApplication('admin', 'wrong-password');
$this->assertNull($application->getContainer()->get('user'));
}