0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-25 08:57:55 +00:00
salesagility_SuiteCRM/tests/acceptance/modules/Calendar/CalendarCest.php
2023-07-18 15:53:47 +01:00

48 lines
980 B
PHP

<?php
use Faker\Generator;
#[\AllowDynamicProperties]
class CalendarCest
{
/**
* @var Generator $fakeData
*/
protected $fakeData;
/**
* @var integer $fakeDataSeed
*/
protected $fakeDataSeed;
/**
* @param AcceptanceTester $I
*/
public function _before(AcceptanceTester $I)
{
if (!$this->fakeData) {
$this->fakeData = Faker\Factory::create();
}
$this->fakeDataSeed = mt_rand(0, 2048);
$this->fakeData->seed($this->fakeDataSeed);
}
/**
* @param \AcceptanceTester $I
*
* As an administrator I want to view the calendar module.
*/
public function testScenarioViewCalendarModule(
\AcceptanceTester $I
) {
$I->wantTo('View the calendar module for testing');
// Navigate to calendar list-view
$I->loginAsAdmin();
$I->visitPage('Calendar', 'index');
$I->see('Calendar', '.moduleTitle');
}
}