<commit_before><?php

namespace backend\tests\functional\lead;

use backend\tests\FunctionalTester;
use backend\tests\Step\Functional\LeadManager;
use backend\tests\Step\Functional\Manager;
use common\fixtures\helpers\LeadFixtureHelper;
use common\modules\lead\controllers\LeadController;
use common\modules\lead\models\ActiveLead;
use common\modules\lead\models\LeadStatusInterface;

class LeadCest {

	/** @see LeadController::actionIndex() */
	public const ROUTE_INDEX = '/lead/lead/index';
	/** @see LeadController::actionCreate() */
	private const ROUTE_CREATE = '/lead/lead/create';
	/** @see LeadController::actionView() */
	public const ROUTE_VIEW = '/lead/lead/view';

	private const SELECTOR_SEARCH_LABEL = '.lead-search label';
	private const SELECTOR_FORM = '#lead-form';

	private FunctionalTester $tester;

	public function _before(FunctionalTester $I): void {
		$this->tester = $I;
	}
<commit_msg>test: add lead fixture for Backend LeadCest.<commit_after><?php

namespace backend\tests\functional\lead;

use backend\tests\FunctionalTester;
use backend\tests\Step\Functional\LeadManager;
use backend\tests\Step\Functional\Manager;
use common\fixtures\helpers\LeadFixtureHelper;
use common\modules\lead\controllers\LeadController;
use common\modules\lead\models\ActiveLead;
use common\modules\lead\models\LeadStatusInterface;

class LeadCest {

	/** @see LeadController::actionIndex() */
	public const ROUTE_INDEX = '/lead/lead/index';
	/** @see LeadController::actionCreate() */
	private const ROUTE_CREATE = '/lead/lead/create';
	/** @see LeadController::actionView() */
	public const ROUTE_VIEW = '/lead/lead/view';

	private const SELECTOR_SEARCH_LABEL = '.lead-search label';
	private const SELECTOR_FORM = '#lead-form';

	private FunctionalTester $tester;

	public function _before(FunctionalTester $I): void {
		$this->tester = $I;
	}

	public function _fixtures(): array {
		return LeadFixtureHelper::leads();
	}

{'fraction_non_alphanumeric': 0.12926577042399173, 'fraction_numerical': 0.0, 'mean_word_length': 5.515151515151516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7475453', 'n_tokens_mistral': 641, 'n_tokens_neox': 602, 'n_words': 124}