mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 11:00:40 +08:00
- Add legacy handler to access RouteConverter - Add legacy handler to access ModuleNameMapper - Add legacy handler to access ActionNameMapper - Remove action and module name maps from Suite8 side - Update frontend route converter to check for suite 8 routes -- When link is a suite 8 route does not convert - Add LegacyScopeState to allow for nested legacy handler calls -- Add abstract getHandlerKey to base LegacyHandler -- Implement getHandlerKey on all legacy handlers - Update legacy handler init and close methods to use scope state -- Check if withing an already open legacy handler scope
54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php
|
|
namespace App\Tests;
|
|
|
|
use Codeception\Actor;
|
|
use Codeception\Lib\Friend;
|
|
|
|
/**
|
|
* Inherited Methods
|
|
* @method void wantToTest($text)
|
|
* @method void wantTo($text)
|
|
* @method void execute($callable)
|
|
* @method void expectTo($prediction)
|
|
* @method void expect($prediction)
|
|
* @method void amGoingTo($argumentation)
|
|
* @method void am($role)
|
|
* @method void lookForwardTo($achieveValue)
|
|
* @method void comment($description)
|
|
* @method Friend haveFriend($name, $actorClass = NULL)
|
|
*
|
|
* @SuppressWarnings(PHPMD)
|
|
*/
|
|
class AcceptanceTester extends Actor
|
|
{
|
|
use _generated\AcceptanceTesterActions;
|
|
|
|
/**
|
|
* Define custom actions here
|
|
*/
|
|
|
|
/**
|
|
* @param string $name
|
|
* @param string $password
|
|
*/
|
|
public function login(string $name, string $password): void
|
|
{
|
|
/**
|
|
* To implement when auth is working
|
|
*/
|
|
}
|
|
|
|
/**
|
|
* Login using legacy app
|
|
* @param string $name
|
|
* @param string $password
|
|
*/
|
|
public function loginInLegacy(string $name, string $password): void
|
|
{
|
|
$this->amOnPage('/legacy/index.php?action=Login&module=Users');
|
|
$this->fillField('user_name', $name);
|
|
$this->fillField('username_password', $password);
|
|
$this->click('Log In');
|
|
$this->seeInCurrentUrl('index.php?module=Home&action=index');
|
|
}
|
|
}
|